https://github.com/torokmark/malloy
:bear: Malloy is a tiny, cute, cub library for logging.
https://github.com/torokmark/malloy
log logger logging-library
Last synced: about 1 month ago
JSON representation
:bear: Malloy is a tiny, cute, cub library for logging.
- Host: GitHub
- URL: https://github.com/torokmark/malloy
- Owner: torokmark
- License: mit
- Created: 2017-11-11T20:47:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-21T07:41:39.000Z (over 7 years ago)
- Last Synced: 2025-02-28T22:42:40.276Z (over 1 year ago)
- Topics: log, logger, logging-library
- Language: JavaScript
- Homepage: https://torokmark.github.io/malloy/
- Size: 83 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Malloy.js
Malloy.js is a tiny, cute, cub library for logging inspired by the famous and celebrated sitcom series Brickleberry.
[](https://www.npmjs.com/package/malloy)
[](https://travis-ci.org/torokmark/malloy)
[](https://github.com/torokmark/malloy/)
[](https://github.com/torokmark/malloy/blob/master/LICENSE)
[](https://snyk.io/test/github/torokmark/malloy)
[](https://saythanks.io/to/torokmark)
Levels:
* `Malloy` informs the forrest!
* `Denzel` debugs it!
* `Woody` warns you!
* `Ethel` emits errors!
* `Steve` is severe!
## Install
```
npm install malloy
```
## Usage
```javascript
var malloy = require('malloy');
adoptedMalloy = require('malloy').adopt({location: __filename, park: 'yellowstone', storage: '/home/username/log.out', dateformat: 'isoTime'});
malloy.says('hello');
malloy.says('hello', {to: 'denzel'});
malloy.says('The message in Yellowstone', {park: 'yellowstone'});
malloy.says('The message in Brickleberry', {park: 'brickleberry'});
malloy.saysToWoody('hello');
malloy.saysToDenzel();
malloy.saysToEthel('here the lipstick', {location: 'file...'});
malloy.saysToSteve('ohh it is severe!', {park: 'brickleberry'});
malloy.toDenzel('an animal like bug is over there', {animal: 'bug'} );
malloy.saysToDenzel('an animal like deer is not shown', {animal: 'deer'} );
malloy.toEthel('In Yellowstone', {park: 'yellowstone'});
malloy.toSteve('In Brickleberry', {park: 'brickleberry', storage: '/home/username/log.out'});
adoptedMalloy.toEthel('Ethel, what are you doing here?', {location: __filename, dateformat: 'isoDate'});
adoptedMalloy.toDenzel('Denzel is here and shown ', {animal: 'bug'});
adoptedMalloy.toDenzel('Denzel is here and shonw in Brickleberry', {animal: 'bug', park: 'brickleberry'});
adoptedMalloy.toSteve('hola stevie!');
```