@drawbotics/logger
v1.0.3
Published
Basic logger used in server side Drawbotics applications.
Downloads
9
Keywords
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',
});