nodejs-custom-consolelog
v0.2.8
Published
Custom Logger for Nodejs
Downloads
18
Readme
Custom Logger for Nodejs
const logger = require("nodejs-custom-consolelog");
const log = new logger.LogConsole("test");
log.log("Logger~ 🛠️");
[12:00:00] [test] Logger~ 🛠️
in .log/test
[12:00:00] Logger~ 🛠️
How to disable write log to file?
const logger = require("nodejs-custom-consolelog");
const log = new logger.LogConsole("test", { processor: null, init: null });
// { processor: null, init: null } to disable
log.log("Logger~ 🛠️");
Apis
new logger.LogConsole(id, opt)
opt.processor: (id: string, input: string) => void
Default: Create a file with name id
in .log
folder.