log-switcher

1.0.4 • Public • Published

Set the environment variables as specified in the .env.example

const logger = require('./log');

logger('info', 'This is an info log.');
logger('warning', 'This is an warning log.');
logger('alert', 'This is an alert log.');
logger('emergency', 'This is an emergency log.');
logger('notice', 'This is an notice log.');
logger('debug', 'This is an debug log.');
logger('error', 'This is an error log.');
logger('critical', 'This is an critical log.');
logger('error', {message: 'Some Error', error: {status: 500}});

Package Sidebar

Install

npm i log-switcher

Weekly Downloads

4

Version

1.0.4

License

ISC

Unpacked Size

2.58 kB

Total Files

4

Last publish

Collaborators

  • tinker20