diff --git a/winston_config.js b/winston_config.js index f619ceb54a5cacccd1a2bd82de564d3ad008d2f4..cec34cfcf30628ea44076431519bf9fa2b678988 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) }