Have ideas to improve npm?Join in the discussion! »

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

    2.3.0 • Public • Published

    log-util

    NPM Version NPM Downloads MIT License

    NPM

    NPM

    Node.js log utility for terminal output.

    log-util

    usage

    yarn add log-util

    var log = require('log-util');
    log.debug('debug', 0);
    log.info('info', 1);
    log.success('success', 2);
    log.warn('warn', 3);
    log.error('error', 4);
    

    api

    log.setLevel(level: string) => log

    level is level id or level string

    new log.Log(0) => log

    log levels

    log.levels.debug === 0;
    log.levels.info === 1;
    log.levels.success === 2;
    log.levels.warn === 3;
    log.levels.error === 4;
    

    Keywords

    Install

    npm i log-util

    DownloadsWeekly Downloads

    1,192

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    229 kB

    Total Files

    19

    Last publish

    Collaborators

    • avatar