Skip to content
Snippets Groups Projects
Commit caffe7ed authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Update winston logger

parent bd42682c
No related branches found
No related tags found
No related merge requests found
...@@ -6,15 +6,15 @@ function logger(module) { ...@@ -6,15 +6,15 @@ function logger(module) {
return new winston.Logger({ return new winston.Logger({
transports : [ transports : [
// new winston.transports.File({ new winston.transports.File({
// level: 'info', level: 'info',
// filename: process.cwd() + '/logs/all.log', filename: process.cwd() + '/logs/all.log',
// handleException: true, handleException: true,
// json: true, json: false,
// maxSize: 5242880, //5mb maxSize: 5242880, //5mb
// maxFiles: 2, maxFiles: 2,
// colorize: false colorize: false
// }), }),
new winston.transports.Console({ new winston.transports.Console({
level: 'debug', level: 'debug',
label: getFilePath(module), label: getFilePath(module),
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"method-override": "^2.3.3", "method-override": "^2.3.3",
"monetdb": "^1.1.2", "monetdb": "^1.1.2",
"nconf": "^0.6.x", "nconf": "^0.6.x",
"winston": "^0.8.x" "winston": "^2.2.0"
}, },
"license": "MIT" "license": "MIT"
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment