Skip to content
Snippets Groups Projects

confi console.log

Merged P0033 requested to merge us45log into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -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)
}
Loading