Compare commits

..

1 Commits

Author SHA1 Message Date
8887031284 Use winston for logging 2021-03-14 21:26:40 -06:00

View File

@ -7,7 +7,10 @@ export const logger = winston.createLogger({
transports: [new winston.transports.Console()], transports: [new winston.transports.Console()],
format: format.combine( format: format.combine(
format.errors({ stack: true }), format.errors({ stack: true }),
format.printf(({ level, message }) => `${level}: ${message}`) format.printf(
({ level, message, stack }) =>
`${level}: ${message}${stack ? "\n" + stack : ""}`
)
), ),
}); });