kopitech-logger

1.0.1 • Public • Published

Kopitech Logger

A logger to be used with Kopitech Services

Installation

Using npm: npm install --save kopitech-logger

Usage

const { L } = require('kopitech-logger')('My Service');

L.debug('This is a debug log');
L.info('This is an info log');
L.warn('This is a warning log');
L.error('This is an error log');

Environment Variable

LOGGING_ENABLED (BOOLEAN default: true) - Whether authentication should be enabled

LOGGING_LEVEL (BOOLEAN default: info) - Log level to be used (debug, info, warn, error)

Contributions

Contributions to the Library are welcomed.

Readme

Keywords

Package Sidebar

Install

npm i kopitech-logger

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

2.13 kB

Total Files

3

Last publish

Collaborators

  • yeehuipoh