Novices Plagiarizing Mozart

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

    3.3.0 • Public • Published

    Logging Build Status

    Lightweight informative modern console logging.

    logging

    Install

    yarn add logging

    Features

    • Simple.
    • Log levels.
    • Nice coloring.

    Usage

    // or const createLogger = require('logging');  
    import createLogger from 'logging';
    
    const logger = createLogger('FeatureName');
    
    logger.info('Interesting');
    // -> [ Feature ] Interesting
    
    logger.warn('Hmmm...', { details });
    // -> [ WARNING Feature ] Hmmm... { details object }
    
    logger.error('Not good.', 'Not good at all.', { err }, { context }, { etc });
    // -> [ ERROR Feature ] Not good. Not good at all. { err } { context } ...
    
    // uses the debug module, use DEBUG=* or DEBUG=FeatureName to see these items.
    logger.debug('Interesting');
    // -> [ Feature ] Interesting

    Keywords

    none

    Install

    npm i logging

    DownloadsWeekly Downloads

    4,707

    Version

    3.3.0

    License

    MIT

    Unpacked Size

    13.2 kB

    Total Files

    13

    Last publish

    Collaborators

    • dylang