https://github.com/luciopaiva/willie
A companion to Winston
https://github.com/luciopaiva/willie
Last synced: 7 months ago
JSON representation
A companion to Winston
- Host: GitHub
- URL: https://github.com/luciopaiva/willie
- Owner: luciopaiva
- Created: 2014-11-01T22:05:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-03T02:29:24.000Z (almost 11 years ago)
- Last Synced: 2025-01-26T15:25:50.733Z (9 months ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Willie
A companion to [Winston](//github.com/flatiron/winston).
## Installation
```bash
npm install willie
```## Features
Willie is capable of producing a log output with indentation, so that you can better visualize what's happening in your output.
Example code:
```javascript
var
willie = require('willie');
willie.logToConsole();willie
.hr()
.info('Willie')
.indent()
.info('This line will be indented')
.error('This one is correctly aligned to the above line, despite having a different level')
```Will produce the following output:
```text
23:55:47.501 - info: --------------------------------------------------------------------------------
23:55:47.504 - info: Willie
23:55:47.504 - info: . This line will be indented
23:55:47.504 - error: . This one is correctly aligned to the above line, despite having a different level
```