Dependency-free Node.js module for simple, rotating, file-based logging
Use the package manager npm to install logger:
npm install @moaufmklo/logger
const Logger = require("@moaufmklo/logger");
const logger = new Logger({
"logsPath": "./logs/"
});
logger.log("info", "An information log.");
logger.log("warn", "A warning log.");
logger.log("error", "An error log.");
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.