Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 22 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | 'use strict'; |
||
2 | |||
3 | var winston = require('winston'); |
||
4 | |||
5 | var logger = new (winston.Logger)({ |
||
6 | transports: [ |
||
7 | new (winston.transports.File)({ |
||
8 | level: 'debug', |
||
9 | json: true, |
||
10 | filename: './debug.log', |
||
11 | handleExceptions: true |
||
12 | }), |
||
13 | new (winston.transports.Console)({ |
||
14 | level: 'debug', |
||
15 | json: true, |
||
16 | handleExceptions: true |
||
17 | }) |
||
18 | ], |
||
19 | exitOnError: false |
||
20 | }); |
||
21 | |||
22 | module.exports = logger; |