Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scull7/debug-log
A simple logging mechanism built on top of debug.
https://github.com/scull7/debug-log
Last synced: about 1 month 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 (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-20T17:28:52.000Z (about 10 years ago)
- Last Synced: 2023-03-12T11:05:13.287Z (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
```