Skip to content

Commit

Permalink
update winston
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeye committed Nov 10, 2015
1 parent 6a8fdc6 commit 1f37e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "http://github.com/georgeye/node_timer_service.git"
},
"dependencies": {
"winston": "0.6.1",
"winston": "1.1.1",
"redis": "0.8.2",
"node-uuid": "1.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var winston = require('winston');

var logLevel = 5;
exports.initLog = function(name, logLevel_) {
winston.add(winston.transports.File, { filename: name, maxsize: 5000000, maxFiles: 10});
winston.add(winston.transports.File, { filename: name, maxsize: 5000000, maxFiles: 10, level: 'debug'});
winston.remove(winston.transports.Console);
logLevel = logLevel_;
}
Expand Down

0 comments on commit 1f37e2c

Please sign in to comment.