Skip to content

Zolmeister/loga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published