Licence
MIT
Version
1.0.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Simple Logger Nodejs
!! This package is under active development and should not be used !!
A simple nodejs error/info logger for production use.
This package only exports one function named logger which takes two arguments:
type- The type of log. It can be eithererrororinfo.message- The message to be logged.
Installation
npm install simple-logger-nodejs
Usage
const logger = require('simple-logger-nodejs');
logger('error', 'This is an error message');
logger('info', 'This is an info message');