5.3.2 • Published 4 months ago
winston-sumologic-transport v5.3.2
winston-sumologic-transport
A transport for the Winston logger for logging to a SumoLogic endpoint
Installation
npm install --save winston-sumologic-transport
Usage
const winston = require("winston");
const { SumoLogic } = require("winston-sumologic-transport");
const options = {
url: "http://example.com"
};
winston.add(new SumoLogic(options));
winston.debug("Hello, world!");
SumoLogic message
After logging message appears in SumoLogic in following format:
{
level: "debug"
message: "Hello, world!",
meta: {}
}
Options
url : The SumoLogic HTTP collector URL. See https://help.sumologic.com/Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/zGenerate-a-new-URL-for-an-HTTP-Source
level : The minimum logging level to send to SumoLogic [default: 'info']
silent : A boolean flag to suppress output [default: false]
interval: The interval (in mills) between posts to SumoLogic [default: 1000]
label : A custom label associated with each message (prepended to message)
meta : Additional meta data with log message. Properties will be overriden if specified during logging.
onError : A function that will be called when there is an error sending the logs to sumo. It may return a promise.
5.3.2
4 months ago
5.3.1
4 months ago
5.3.0
5 months ago
5.2.1
2 years ago
5.2.0
2 years ago
5.1.0
2 years ago
5.0.0
2 years ago
4.0.1
2 years ago
4.0.0
2 years ago
3.2.3
3 years ago
3.2.2
4 years ago
3.2.1
4 years ago
3.2.0
4 years ago
1.3.0
5 years ago
3.1.0
5 years ago
3.0.0
5 years ago
1.2.0
5 years ago
1.1.0
6 years ago
1.0.0
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago