mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-23 04:25:29 +00:00
27 lines
655 B
JavaScript
27 lines
655 B
JavaScript
|
var winston = require('winston');
|
||
|
winston.emitErrs = true;
|
||
|
|
||
|
var logger = new winston.Logger({
|
||
|
transports: [
|
||
|
new winston.transports.File({
|
||
|
level: 'info',
|
||
|
filename: './server.log',
|
||
|
handleExceptions: true,
|
||
|
humanReadableUnhandledException: true,
|
||
|
json: true,
|
||
|
maxsize: 5242880, //5MB
|
||
|
maxFiles: 5,
|
||
|
colorize: false
|
||
|
}),
|
||
|
new winston.transports.Console({
|
||
|
level: 'debug',
|
||
|
handleExceptions: true,
|
||
|
json: false,
|
||
|
colorize: true
|
||
|
})
|
||
|
],
|
||
|
exitOnError: false
|
||
|
});
|
||
|
|
||
|
module.exports = logger;
|