@drawbotics/logger

    1.0.3 • Public • Published

    Logger

    A basic logger used in server side Drawbotics applications.

    Installation

    Install it as usual with npm:

    $ npm i @drawbotics/logger

    Usage

    const logger = require('@drawbotics/logger');
    
    // Basic usage
    logger.info('This is an info message');
    logger.warn('This is a warning message');
    logger.error('This is an error message');
    
    // It has support for JSON too
    logger.info('This is a message with json', {
      greeting: 'Hello',
      to: 'World',
    });

    Example

    Example

    Keywords

    none

    Install

    npm i @drawbotics/logger

    DownloadsWeekly Downloads

    0

    Version

    1.0.3

    License

    UNLICENSED

    Unpacked Size

    122 kB

    Total Files

    11

    Last publish

    Collaborators

    • manuelitox
    • larsbs
    • nicmosc
    • bartolomeumr
    • leopoldarkham