https://github.com/lightsofapollo/json-logger
Super simple logger (similar to debug) prints newline delimited json to stdout.
https://github.com/lightsofapollo/json-logger
Last synced: 8 months ago
JSON representation
Super simple logger (similar to debug) prints newline delimited json to stdout.
- Host: GitHub
- URL: https://github.com/lightsofapollo/json-logger
- Owner: lightsofapollo
- License: other
- Created: 2014-08-20T19:48:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-21T18:21:27.000Z (almost 12 years ago)
- Last Synced: 2025-01-28T12:18:43.422Z (over 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
json-logger
===========
Super simple logger (similar to debug) prints newline delimited json to stdout.
## Usage
```js
var log = require('json-logger')({
user: 'foobar'
});
log('critical error', { message: 'You failed.' });
// will log
// { type; 'critical error', message: 'you failed', user: 'foobar' }
```
See the [examples](/examples) folder for usage the output is tested
there as well...