|
@ -21,7 +21,7 @@ let logger = winston.createLogger({ |
|
|
format: winston.format.combine( |
|
|
format: winston.format.combine( |
|
|
winston.format.timestamp(), |
|
|
winston.format.timestamp(), |
|
|
winston.format.splat(), |
|
|
winston.format.splat(), |
|
|
winston.format.json() |
|
|
|
|
|
|
|
|
winston.format.simple() |
|
|
), |
|
|
), |
|
|
defaultMeta: { service: 'baphomet-js' }, |
|
|
defaultMeta: { service: 'baphomet-js' }, |
|
|
transports: [ |
|
|
transports: [ |
|
@ -33,6 +33,7 @@ let logger = winston.createLogger({ |
|
|
if (process.env.NODE_ENV !== 'production') { |
|
|
if (process.env.NODE_ENV !== 'production') { |
|
|
logger.add(new winston.transports.Console({ |
|
|
logger.add(new winston.transports.Console({ |
|
|
format: winston.format.combine( |
|
|
format: winston.format.combine( |
|
|
|
|
|
winston.format.colorize(), |
|
|
winston.format.simple() |
|
|
winston.format.simple() |
|
|
) |
|
|
) |
|
|
})); |
|
|
})); |
|
@ -40,6 +41,7 @@ if (process.env.NODE_ENV !== 'production') { |
|
|
logger.add(new winston.transports.Console({ |
|
|
logger.add(new winston.transports.Console({ |
|
|
level: 'error', |
|
|
level: 'error', |
|
|
format: winston.format.combine( |
|
|
format: winston.format.combine( |
|
|
|
|
|
winston.format.colorize(), |
|
|
winston.format.simple() |
|
|
winston.format.simple() |
|
|
) |
|
|
) |
|
|
})); |
|
|
})); |
|
|