Closed ivansantosz closed 5 years ago
Thank you for your reply!
You can simply pass logger
as a parameter to the middleware
const consoleLogger = createLogger({
format: format.combine(
format.errors({ stack: true }),
format.splat(),
format.json(),
format.prettyPrint(),
),
transports: [new transports.Console()],
});
const middleware = logger({
logger: consoleLogger,
});
Looking forward to your feedback
Would be cool to be able to reuse an instance: