loga
a logging library
Last updated 2 years ago by zolmeister .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install loga 
SYNC missed versions from official npm registry.

loga

finally a reasonable logger

log = require 'loga'

log('debug by default')
log.trace 'trace'
log.debug 'debug'
log.info 'info'
log.warn 'warn'
log.error 'error'
log {auto: 'stringify'} # objects stringified automatically
log new Error 'test' # Errors stringified automatically

log.level = 'warn' # limit to warn or above
log.level = null # silence

log.on 'warn', (args...) ->
  # do something with log

Current Tags

  • 0.1.5                                ...           latest (2 years ago)

7 Versions

  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |