simple-logger-nodejs

1.0.3 • Public • Published

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:

  1. type - The type of log. It can be either error or info.
  2. 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');

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i simple-logger-nodejs

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.97 kB

Total Files

7

Last publish

Collaborators

  • mubashirjamali