Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nisaacson/log-colors
A colorized winston console logger
https://github.com/nisaacson/log-colors
Last synced: about 1 month ago
JSON representation
A colorized winston console logger
- Host: GitHub
- URL: https://github.com/nisaacson/log-colors
- Owner: nisaacson
- Created: 2013-03-19T23:34:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-19T23:41:56.000Z (over 11 years ago)
- Last Synced: 2024-04-14T14:46:44.047Z (7 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Log Colors
A colorized winston console logger. Sometimes you want a very simple logger which just logs to this console. However colors and pretty printing are useful enough to have as a default. For these cases use **log-colors**# Installation
```bash
npm install -S log-colors
```# Usage
Use as you would a standard winston logger```javascript
var logger = require('log-colors')
logger.debug('this should be colorized and pretty-printed', {
foo: 'bar'
}
```# Test
Execute the command
```bash
npm test
```