Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsys/pavlog
:memo: Unified logging for npm modules
https://github.com/dsys/pavlog
Last synced: about 1 month 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T21:34:47.000Z (over 8 years ago)
- Last Synced: 2024-11-08T08:54:29.446Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pavlog
[![TravisCI shield](https://img.shields.io/travis/pavlovml/pavlog.svg)](https://travis-ci.org/pavlovml/pavlog) [![npm shield](https://img.shields.io/npm/v/pavlog.svg)](https://www.npmjs.com/package/pavlog) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](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 [email protected]:pavlovml/pavlog.git
$ make testTo 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)