Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var EE = require("events").EventEmitter;
var LoggerFactory = require("../factory");
var StreamHandler = require("../handlers").StreamHandler;
var jsonFormat = require("../json-format");
var bunyan = require("bunyan");
var pino = require("pino");
var pinoLogger = pino({ timestamp: pino.stdTimeFunctions.slowTime });
var pinoLoggerFast = pino({});
var stdout = new EE();
stdout.write = function(out, encoding, cb) {
if (typeof encoding === "function") {
cb = encoding;
encoding = null;
}
cb && cb();
return true;
};
var f1 = new LoggerFactory({ handlerConstructor: StreamHandler });
var l1 = f1.get("a");
f1