mirror of https://github.com/Requarks/wiki.git
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.
22 lines
424 B
22 lines
424 B
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
|
|
})
|
|
}
|
|
}
|