From 3bb8c5d1c2ca9ea9cacf53b9a65baedc2be72430 Mon Sep 17 00:00:00 2001 From: Maarit <p0033@student.jamk.fi> Date: Tue, 24 Nov 2020 14:01:20 +0200 Subject: [PATCH] confi console.log --- winston_config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winston_config.js b/winston_config.js index f619ceb..cec34cf 100644 --- a/winston_config.js +++ b/winston_config.js @@ -4,7 +4,8 @@ const { createLogger, format, transports } = require('winston'); const { combine, splat, timestamp, printf } = format; const myFormat = printf( ({ level, message, timestamp , ...metadata}) => { - let msg = `${timestamp} [${level}] : ${message} ` + let msg = `${timestamp} [${level}] : ${message} ` + console.log("suoritetaanko myformat ikinä") if(metadata) { msg += JSON.stringify(metadata) } -- GitLab