https://github.com/aprowe/easy-fun-log
https://github.com/aprowe/easy-fun-log
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aprowe/easy-fun-log
- Owner: aprowe
- Created: 2017-10-20T07:14:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-20T07:15:07.000Z (over 8 years ago)
- Last Synced: 2025-02-23T10:15:44.213Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Easy Fun Log!
Easy Fun Log is a node logging tool.
Many Logging tools have too many features and produce outrageously verbose output.
This tool is for increasing readability of your node output.
Makes it easy to color logs, configure log level, and display json.
### Install
You know the drill.
```
npm install easy-fun-log
```
### Usage
```
const log = require('easy-fun-log');
// Choose your style
log('Default!');
log.info('Info!');
log.warn('Warn!');
log.err('Error!');
log.debug('Debug!');
// Some input is specially rendered
log({objectsRender: true});
log(123, 'Numbers are colored');
// Set Log level
log.setLevel('none');
log.setLevel('all');
log.setLevel('error');
log.setLevel('warn');
log.setLevel('debug');
// Create your own theme!
// Uses colors npm package
log.setTheme({
info: 'blue',
warn: ['yellow', 'underline'],
error: '#FF0011',
my_custom: 'white'
});
log.info('blue text!');
log.my_custom('white text!');
```
### Upcoming Features
I plan on keeping it simple, while increasing some of it's flexibility.