wikijs-fork/server/modules/logging/console.js

23 lines
428 B
JavaScript
Raw Normal View History

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