https://github.com/linagirl/ee-log
Easy, simple & useful logging
https://github.com/linagirl/ee-log
javascript logging nodejs
Last synced: about 1 year ago
JSON representation
Easy, simple & useful logging
- Host: GitHub
- URL: https://github.com/linagirl/ee-log
- Owner: linaGirl
- License: mit
- Created: 2013-03-16T12:53:21.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T13:55:37.000Z (over 7 years ago)
- Last Synced: 2025-03-29T12:11:13.261Z (about 1 year ago)
- Topics: javascript, logging, nodejs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/ee-log
- Size: 414 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ee-log
Easy, simple & useful logging
Supported by [joinbox.com](https://joinbox.com/), your swiss node.js & javascript agency :rocket:
[](https://www.npmjs.com/package/ee-log)
[](https://travis-ci.org/eventEmitter/ee-log)

# API
The module exposes a set of methods that can be used to print colorful logs. Each of the methods accepts an unlimited amount of parameters. All of the parameters will be printed. Objects will automatically printed in an expanded form, errors will be printed in a more readable form. Each log log statement is prefixed with the exact file and line where the log statement is located.
## Methods
- debug: grey text
- info: white text
- warn: yellow text
- error: red text
- success: green text
- highlight: violet text
```
log.error('not good!');
```
you may also use the module itself to log items
```
const log = require('ee-log');
log('this is awesome', {
someValue: true
}, new Error('fancy error printing'));
```