This commit is contained in:
msnie
2024-02-03 11:58:42 +01:00
parent 17ca1c805f
commit 5b0b5f548c
706 changed files with 135245 additions and 0 deletions
+10
View File
@@ -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;