0.0.3 • Published 2 years ago

lucid-log v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

lucid-log

A simple logger for nodejs applications.

This is at it's early stage of development and has very basic functionality. Please share your comments and suggestions, also report any bugs.

Installation

npm install lucid-log

or

yarn add lucid-log

Usage

Example 1:

const { LucidLog } = require('lucid-log');
const logger = new LucidLog({
	levels: ['info','error','debug','warn']
});
logger.error('Unauthorized\n');
logger.debug('Welcome!\n');
logger.warn('Some functions might not work\n');
logger.info('You are using the latest version\n');

Output

npm.io

Example 2:

const { LucidLog } = require('.');
const logger = new LucidLog({
	levels: ['error','warn']
});
logger.error('Unauthorized\n');
logger.debug('Welcome!\n');
logger.warn('Some functions might not work\n');
logger.info('You are using the latest version\n');

Output

npm.io

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago