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

    1.0.4 • Public • Published

    ps-logger

    screenshot

    • MIT License
    • imshivanshpatel shivansh-patel-4915b4171 programming_updates
    • ps-logger is a production grade logger, basically it is used for logging info,warning,error,silly,verbose,prompt and debug statements

    usage examples:-

    const logger=require('ps-logger');
    
    logger.info("This is info")
    logger.warn("This is warning");
    logger.error("This is error");
    logger.debug("This is debug");
    logger.prompt("This is prompt");
    logger.verbose("This is verbose");
    logger.silly("This is silly");

    disabling or enabling color

    • By default it is set to true,so you dont need to set it as true
    logger.setColor(false);

    In TypeScript

    import {info} from "ps-logger";
    
    info(`server is running on port ${port} `)

    Install

    npm i ps-logger

    DownloadsWeekly Downloads

    6

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    6.53 kB

    Total Files

    6

    Last publish

    Collaborators

    • thisis_shivanshpatel