dl-logger
TypeScript icon, indicating that this package has built-in type declarations

0.2.9 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dl-logger

Weekly Downloads

1

Version

0.2.9

License

ISC

Unpacked Size

10.4 kB

Total Files

5

Last publish

Collaborators

  • tyfang