1.0.2 • Published 4 years ago
beenhamow-logger v1.0.2
About
BeenhamOW Logger is a simple logging package that formats the logs in my code to a format providing useful information.
Installation
npm install beenhamow-logger
Example Usage
Writing Logs
const logger = require("beenhamow-logger");
logger.log("This is a log");
logger.warn("This is a warning");
logger.error("This is an error");
logger.debug("This is a debugging message");
Output
[05-01-2022 12:26:55][ LOG ]: This is a log
[05-01-2022 12:26:55][ WARN ]: This is a warning
[05-01-2022 12:26:55][ ERROR ]: This is an error
[05-01-2022 12:26:55][ DEBUG ]: This is a debugging message