1.3.6 • Published 6 years ago
winston-unix-dgram-log v1.3.6
WINSTON-UNIX-DGRAM-LOG
unix-dgram plugin for winston logger
INSTALL
npm i winston-unix-dgram-log
HOW TO USE
// example
transports.push(
new winston.transports.UnixDgramLog({
path: env.LOG_AGENT_SOCK_PATH,
producer: {
app_id: 'activity-plat',
instance_id: `${os.hostname()}_${process.pid}`
},
prefix: () => `${env.LOG_ID}${moment().valueOf()}`
})
);
1.3.6
6 years ago