node-ino-logger
v1.0.2
Published
write your logs in file and archive its
Downloads
2
Maintainers
Readme
node-ino-logger
Simple example
const Logger = require("node-ino-logger"); // require node-ino-logger
const logger = new Logger({
mode: 1, // 0 log in console 1 log in file
diskPercent: 2, // log file max size by disk size (percent)
logFileUploadDir: __dirname + "/logs", // your log filedirectory path
archiveUploadDir: __dirname + "/logs" + "/archive", // your archive directory path
archiveInterval: 1, // by this interval log file will be archived ,by day
});
logger.use(); // call logger.use() for use
logger.log("logger is worked", "SUCCESS"); // first parametr is your log, second is status