Motivation
The HTTP transport included with winston uses a JSON-RPC format, which is not how all log services expect their data. This transport allows a more customizable format.
Use
Each of the following methods will add this transport to your instance of winston. You may try any of these examples by first creating a RequestBin at https://requestb.in/ and using it in place of the URL below. See the fourth example for an overview of available options.
const winston = ;const Endpoint = ;winston;winston;
const winston = ;const Endpoint = ;winston;winston;
const winston = ;const Endpoint = ;const logger = transports: url: 'http://requestb.in/1hc2i4h13' logger;
const winston = ;const Endpoint = ;winstonloggers;winstonloggers;
The underlying library for this transport is got, and you can pass any options it accepts through the http
field in the options object.
🙃