diff --git a/logging.js b/logging.js index 0e8b814..0c9a52e 100644 --- a/logging.js +++ b/logging.js @@ -8,11 +8,15 @@ winston.emitErrs = true; var logger = new winston.Logger({ transports: [ new winston.transports.Console({ - level: 'silly', + level: 'warn', handleExceptions: true, humanReadableUnhandledException: true, json: false, colorize: true + }), + new winston.transports.File({ + filename: 'discord.log', + level: 'silly' }) ], handleExceptions: true,