https://github.com/scull7/debug-log
A simple logging mechanism built on top of debug.
https://github.com/scull7/debug-log
Last synced: 7 months ago
JSON representation
A simple logging mechanism built on top of debug.
- Host: GitHub
- URL: https://github.com/scull7/debug-log
- Owner: scull7
- License: mit
- Created: 2014-10-20T17:22:15.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-20T17:28:52.000Z (almost 12 years ago)
- Last Synced: 2025-01-29T19:46:45.754Z (over 1 year ago)
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
debug-log
=========
A simple logging mechanism built on top of debug.
Usage
-----
```javascript
var logger = require('debug-log')('myLog')
logger.debug("Some debug message here...");
logger.info("Some info here...");
logger.warn("some warning message here...");
logger.error("some error message here...");
```
* Show all messages including debugging (useful for development)
```bash
NODE_DEBUG=myLog:* node my_process.js
```
* Show only a specific set of messages
```bash
NODE_DEBUG=myLog:error node my_process.js
```