re init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
let winston = require("winston");
|
||||
const { createLogger, format } = require("winston");
|
||||
const { combine, timestamp, prettyPrint, label } = format;
|
||||
|
||||
let logger = createLogger({
|
||||
format: combine(label({ label: "UDOHAIKU" }), timestamp(), winston.format.json()),
|
||||
transports: [new winston.transports.File({ filename: "./logs/combined.log" })],
|
||||
});
|
||||
|
||||
module.exports = logger;
|
||||
Reference in New Issue
Block a user