Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devgru/node-ccl
Simple context-enabled colored logger for node.js-based apps
https://github.com/devgru/node-ccl
Last synced: 4 days ago
JSON representation
Simple context-enabled colored logger for node.js-based apps
- Host: GitHub
- URL: https://github.com/devgru/node-ccl
- Owner: devgru
- Created: 2010-08-19T10:20:22.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-11T12:59:59.000Z (over 12 years ago)
- Last Synced: 2024-11-06T22:57:39.823Z (11 days ago)
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-ccl
Colored, context-enabled logger.
It is in beta version.
The way I use it:
//initial global settings
var logger = require('node-ccl');
logger.setDefaultShowDebug(true);
logger.setPadding(8);
//using it
var log = require('node-ccl').forContext('RUNNER', 'yellow');
//and then
log.info('blah-blah');
log.debug(someJsonObject); //it will use JSON.stringify automaticly
log.warn('some bad warning');