summaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authortunkki <tunkki@tunkkikone>2016-08-14 19:33:18 +0300
committertunkki <tunkki@tunkkikone>2016-08-14 19:33:18 +0300
commitfd073bed4077f6a8ab284d53d852c35245bcb309 (patch)
tree80f262a17aad0d52d4ae8525f179f28960d20f47 /index.js
parenta3c6f98ce18c6dc26abff965bed06b9885f2d27c (diff)
Update layout
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 3c1e06a..7df1b70 100644
--- a/index.js
+++ b/index.js
@@ -3,7 +3,7 @@ var express = require("express");
var ejs = require("ejs");
var winston = require("winston");
winston.remove(winston.transports.Console);
-winston.add(winston.transports.Console, {'timestamp': true});
+winston.add(winston.transports.Console, {'handleExceptions': true, 'exitOnError': false, 'timestamp': true});
winston.add(winston.transports.File, { filename: './logs/server.log', level: 'info', timestamp: true, handleExceptions: true, maxsize: 5242880, maxFiles: 10});
winston.level = 'info';