From 6c20b28661638ecec06c5b0d3b2bcb37622658f1 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sat, 8 Jul 2017 23:48:58 -0400 Subject: [PATCH] Tweaked logging levels. --- logging.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,