@drawbotics/logger

Basic logger used in server side Drawbotics applications.

Stats

StarsIssuesVersionUpdatedCreatedSize
@drawbotics/logger
1.0.33 years ago3 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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.