https://github.com/dsys/pavlog
:memo: Unified logging for npm modules
https://github.com/dsys/pavlog
Last synced: 2 days ago
JSON representation
:memo: Unified logging for npm modules
- Host: GitHub
- URL: https://github.com/dsys/pavlog
- Owner: dsys
- License: bsd-3-clause
- Created: 2015-11-11T01:08:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T21:34:47.000Z (almost 10 years ago)
- Last Synced: 2025-10-06T03:29:06.999Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pavlog
[](https://travis-ci.org/pavlovml/pavlog) [](https://www.npmjs.com/package/pavlog) [](http://standardjs.com/)
Unified logging for npm modules.
## Installation
$ npm install pavlog --save
## Usage
```javascript
import pavlog from 'pavlog'
pavlog.useConsole()
const log = pavlog.child('olive')
log('Start logging...') // default level: info
log.fatal('All your base are belong to us!')
```
## Development
Pavlog uses [JavaScript Standard Style](https://github.com/feross/standard), [Babel](https://babeljs.io/) for ES6+ support, and [Jest](http://facebook.github.io/jest/) for testing.
$ git clone git@github.com:pavlovml/pavlog.git
$ make test
To run the tests on file changes:
$ env WATCH=true make test
## TODO
* Advanced console pretty-printing (esp. for errors)
* Listeners for other logging services
* More documentation
## License
[BSD 3-Clause](https://github.com/pavlovml/pavlog/blob/master/LICENSE)