Wondering what’s next for npm?Check out our public roadmap! »

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

    1.0.11 • Public • Published

    Installation

    npm install weakjs --save
    

    or using yarn

    yarn add weakjs
    

    Description

    All the file will automatically save to app root directory's logs folder.
    Info Log Debug will save to stdlog.log
    Error will save to stderr.log

    Usage

    import LoggerRegister from 'weakjs';
    
    // rolling: "daily" / "weekly" / "monthly"
    const logger = new Logger({ saveToFile: true, maxNumberOfFiles: 7, rolling: 'weekly' });
    
    logger.info({ a: 1, b: 2 });
    logger.error(new Error('Test Error'), 'ERROR');

    Result

    Install

    npm i weakjs

    DownloadsWeekly Downloads

    3

    Version

    1.0.11

    License

    ISC

    Unpacked Size

    18.1 kB

    Total Files

    23

    Last publish

    Collaborators

    • avatar