https://github.com/bsgbryan/stipes
Simple, pretty console logging
https://github.com/bsgbryan/stipes
Last synced: 9 months ago
JSON representation
Simple, pretty console logging
- Host: GitHub
- URL: https://github.com/bsgbryan/stipes
- Owner: bsgbryan
- Created: 2015-06-08T18:11:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-09T02:02:03.000Z (over 10 years ago)
- Last Synced: 2025-02-10T03:46:00.764Z (11 months ago)
- Language: CoffeeScript
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Overview
========
This is a simple little module to write pretty things to the console and help you stay sane.
*NOTE* All stipes logging uses pretty colors. Colors are not, however, included in the examples below :disappointed:
Usage
=====
Simple messages
---------------
```coffeescript
stipes = require 'stipes'
stipes.debug 'Richard', "WHAT'S HAPPENING?!"
```
This will output `DEBUG(Richard) WHAT'S HAPPENING?!`
JSON data
---------
```coffeescript
stipes = require 'stipes'
stipes.error 'Postgres', 'ran into an error', error
```
This willl output the following:
```
ERROR(Tester) ran into an error
-code: 314159
-message: Expected cake
```
Available methods
=================
1. `success` - When good things happen
2. `warn` - When strange things happen
3. `error` - when the world ends
4. `notice` - just so you're aware
5. `debug` - To help you work through a tough spot