You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
684 B
34 lines
684 B
6 years ago
|
# logalot [![Build Status](http://img.shields.io/travis/imagemin/logalot.svg?style=flat)](https://travis-ci.org/imagemin/logalot)
|
||
|
|
||
|
> Tiny log utility
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```sh
|
||
|
$ npm install --save logalot
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
var log = require('logalot');
|
||
|
|
||
|
log.info('this is a message');
|
||
|
log.warn('this is a warning');
|
||
|
log.success('this is a success message');
|
||
|
log.error(new Error('this is a error').stack);
|
||
|
|
||
|
/*
|
||
|
ℹ this is a message
|
||
|
⚠ this is a warning
|
||
|
✔ this is a success message
|
||
|
✖ Error: this is an error
|
||
|
at ChildProcess.exithandler (child_process.js:648:15)
|
||
|
at ChildProcess.emit (events.js:98:17)
|
||
|
*/
|
||
|
```
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT © [imagemin](https://github.com/imagemin)
|