npm.io
0.2.9 • Published 3 years ago

dl-logger

Licence
ISC
Version
0.2.9
Deps
2
Size
10 kB
Vulns
0
Weekly
0

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!!"});

warning


  • Message
    logger.show("Cool message");
    log.show({message : "cool Message"})

msg


  • Error
    logger.error("SERVER IS DOWN!!");
    log.error({message : "SERVER IS DOWN!!"});

err