wikijs-fork/server/extensions/logging/console.js
2017-12-24 00:34:47 -05:00

23 lines
424 B
JavaScript

const winston = require('winston')
/* global wiki */
// ------------------------------------
// Console
// ------------------------------------
module.exports = {
key: 'console',
title: 'Console',
props: [],
init (logger, conf) {
logger.add(winston.transports.Console, {
level: wiki.config.logLevel,
prettyPrint: true,
colorize: true,
silent: false,
timestamp: true
})
}
}