Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-drop-logger

Thanks to (https://github.com/visionmedia/log.js/)

Simple logging module for NodeJS with colored message level

$ npm install node-drop-logger

DEBUG: white
EMERGENCY|CRITICAL|ERROR: red
WARNING: yellow
NOTICE|INFO: cyan
OTHERS: green

Usage:

var logger = new loggingModule({
	useConsole: true,							// boolean: true|false
	useFile: true,								// boolean: true|false
	filePath: 'Log(%DATE%).log', 			// string
	level: 'DEBUG'								// [EMERGENCY|ALERT|CRITICAL|ERROR|WARNING|NOTICE|INFO|DEBUG]
});

logger.log('INFO', 'some text');
output: [2013-2-20 11:26:52] INFO some text

logger.info('some text');
output: [2013-2-20 11:26:52] INFO some text

About

Node logging module

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages