An easy to use, more colorful logger.
npm i more-colorful-logger --save
usage
with Timestamp | without Timestamp |
---|---|
true or by default (no input) | false |
1 | 0 |
Example:
const log = require("more-colorful-logger");
log.error("This is an Error-Log"); // with timestamp
log.warn("This is a Warn-Log", false); // without timestamp
log.info("This is an Info-Log", 0); // without timestamp
log.completed("This is a Completed-Log", 1) // with Timestamp
or use this:
const { error, warn, info } = require("more-colorful-logger");
error("This is an Error-Log");
warn("This is a Warn-Log");
info("This is an Info-Log");