@drawbotics/logger

Basic logger used in server side Drawbotics applications.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@drawbotics/logger
1.0.34 years ago4 years agoMinified + gzip package size for @drawbotics/logger in KB

Readme

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