mirror of
https://github.com/comatory/fb2iCal
synced 2025-01-27 15:49:17 +01:00
remove colorized log output, add timestamps
This commit is contained in:
parent
95d1828b82
commit
bdfb097bbb
@ -40,9 +40,9 @@ const forceSecure = (req, res, next) => {
|
||||
|
||||
const createRouteLogger = ({ dev }) => {
|
||||
return expressWinston.logger({
|
||||
transports: createTransports(),
|
||||
transports: createTransports(dev),
|
||||
format: winston.format.combine(
|
||||
winston.format.colorize(),
|
||||
winston.format.timestamp(),
|
||||
winston.format.json()
|
||||
),
|
||||
meta: true,
|
||||
@ -52,9 +52,9 @@ const createRouteLogger = ({ dev }) => {
|
||||
|
||||
const createErrorLogger = ({ dev }) => {
|
||||
return expressWinston.errorLogger({
|
||||
transports: createTransports(),
|
||||
transports: createTransports(dev),
|
||||
format: winston.format.combine(
|
||||
winston.format.colorize(),
|
||||
winston.format.timestamp(),
|
||||
winston.format.json()
|
||||
),
|
||||
})
|
||||
|
@ -78,7 +78,7 @@ const createAppLogger = ({ dev }) => {
|
||||
return winston.createLogger({
|
||||
transports: createTransports(dev),
|
||||
format: winston.format.combine(
|
||||
winston.format.colorize(),
|
||||
winston.format.timestamp(),
|
||||
winston.format.json()
|
||||
),
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user