Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
};
const logger = winston.createLogger({
level: 'debug',
levels: {
emerg: 0,
alert: 1,
crit: 2,
error: 3,
warn: 4,
notice: 5,
info: 6,
debug: 7,
},
format: format.combine(format.errors({stack: true}), format.metadata()),
transports: [new WinstonGraylog2(options)],
});
socket.on('listening', () => {
let emergCheck;
let alertCheck;
let critCheck;
let errorCheck;
let warnCheck;
let noticeCheck;
let infoCheck;
let debugCheck;
const listeners = [];
const notifyListeners = (msg) => {
listeners.forEach((listener) => listener(msg));
};