app/logger/index.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 22
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 22
rs 10
wmc 0
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 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;