Skip to content

dsys/pavlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pavlog

TravisCI shield npm shield js-standard-style

Unified logging for npm modules.

Installation

$ npm install pavlog --save

Usage

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, Babel for ES6+ support, and Jest for testing.

$ git clone [email protected]: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

About

📝 Unified logging for npm modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published