2017-12-24 05:34:47 +00:00
|
|
|
const winston = require('winston')
|
|
|
|
|
2018-03-05 20:49:36 +00:00
|
|
|
/* global WIKI */
|
2017-12-24 05:34:47 +00:00
|
|
|
|
|
|
|
// ------------------------------------
|
|
|
|
// Console
|
|
|
|
// ------------------------------------
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
key: 'console',
|
|
|
|
title: 'Console',
|
|
|
|
props: [],
|
|
|
|
init (logger, conf) {
|
|
|
|
logger.add(winston.transports.Console, {
|
2018-03-05 20:49:36 +00:00
|
|
|
level: WIKI.config.logLevel,
|
2017-12-24 05:34:47 +00:00
|
|
|
prettyPrint: true,
|
|
|
|
colorize: true,
|
|
|
|
silent: false,
|
|
|
|
timestamp: true
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|