2018-03-23 10:57:54 +01:00
|
|
|
import { createLogger, format, transports } from 'winston';
|
|
|
|
|
2018-06-22 18:24:09 +02:00
|
|
|
const { combine, colorize, simple } = format;
|
2017-12-28 23:15:34 -05:00
|
|
|
|
2018-06-22 18:24:09 +02:00
|
|
|
const LOG_LEVEL = 'verbose';
|
2017-12-28 23:15:34 -05:00
|
|
|
|
2017-12-28 23:43:29 -05:00
|
|
|
export const Logger = createLogger({
|
2017-12-28 23:15:34 -05:00
|
|
|
level: LOG_LEVEL,
|
2018-03-23 10:57:54 +01:00
|
|
|
format: combine(colorize(), simple()),
|
2017-12-28 23:43:29 -05:00
|
|
|
transports: [new transports.Console({ level: LOG_LEVEL })]
|
2017-12-28 23:15:34 -05:00
|
|
|
});
|