-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogger.js
More file actions
22 lines (19 loc) · 722 Bytes
/
Copy pathlogger.js
File metadata and controls
22 lines (19 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var winston = require('winston');
//var logger = new (winston.Logger)({
// transports: [
// new (winston.transports.Console)({ json: false, timestamp: true }),
// new winston.transports.File({ filename: __dirname + '/debug.log', json: false })
// ],
// exceptionHandlers: [
// new (winston.transports.Console)({ json: false, timestamp: true }),
// new winston.transports.File({ filename: __dirname + '/exceptions.log', json: false })
// ],
// exitOnError: false
//});
//var logger = new (winston.Logger)({
// transports: [
// new (winston.transports.Console)({ /*level: 'debug'*/ })
// //new (winston.transports.File)({ filename: 'somefile.log' })
// ]
// });
module.exports = winston;