@moaufmklo/logger
v1.1.0
Published
Dependency-free Node.js module for simple, rotating, file-based logging
Downloads
12
Maintainers
Readme
Table of contents
About
Dependency-free Node.js module for simple, rotating, file-based logging
Installation
Use the package manager npm to install logger:
npm install @moaufmklo/logger
Usage
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.");
Links
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.