mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
424 B
23 lines
424 B
7 years ago
|
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
|
||
|
})
|
||
|
}
|
||
|
}
|