winston-influx
v0.1.3
Published
Simple InfluxDB transport for WinstonJS
Downloads
2
Readme
Winston-Influx
Simple InfluxDB transport for WinstonJS.
Example
const winston = require("winston");
const winstonInflux = require("winston-influx");
const logger = new (winston.Logger)({
transports: [
new winstonInflux({
"host": "localhost",
"port": 8086,
"database": "winston",
"measurement": "log",
"buffer": true,
"bufferRecord": 1000,
"bufferTime": 1000
})
]
});
logger.info("Hello, world!");