From 888cd074e6abb595fe050901ea03d6662bcf40eb Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 14 Jan 2020 13:33:13 -0500 Subject: [PATCH 1/2] Typo in createLogger --- lib/log/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log/index.js b/lib/log/index.js index e9848be..848175e 100644 --- a/lib/log/index.js +++ b/lib/log/index.js @@ -14,7 +14,7 @@ function createLog (label, filename = null) { if (filename !== null) { transportsArr.push( new (transports.File)({ label : label, filename : filename }) ) } - return new (winston.createLogger)({ + return new (createLogger)({ format: format.combine( format.label({ label : arg.label || 'intval3' }), format.timestamp({ From b144faa8e3d7892c06f2453c0df3389c96452e75 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 14 Jan 2020 13:34:31 -0500 Subject: [PATCH 2/2] No arg.label, just label --- lib/log/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log/index.js b/lib/log/index.js index 848175e..ed4ef77 100644 --- a/lib/log/index.js +++ b/lib/log/index.js @@ -16,7 +16,7 @@ function createLog (label, filename = null) { } return new (createLogger)({ format: format.combine( - format.label({ label : arg.label || 'intval3' }), + format.label({ label : label || 'intval3' }), format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }),