dl-logger
v0.2.9
Published
A lightweight logger for js application build on top of chalk.js
Downloads
4
Readme
How to use DL-logger
//You can find the example for logger config file at https://github.com/TyFangXV/DL-logger/blob/main/test/logger.config.json
const { default: DLogger } = require("dl-logger");
const logger = new DLogger(root_to_parent_folder);
The logger supports both string and object
Types of command
- Warning
logger.warn("Server is slowing down!!!!")
logger.warn({message : "SERVER IS SLOWING DOWN!!"});
- Message
logger.show("Cool message");
log.show({message : "cool Message"})
- Error
logger.error("SERVER IS DOWN!!");
log.error({message : "SERVER IS DOWN!!"});