开发者社区> 镜像站> NPM> @yerkopalma/tiny-log
@yerkopalma/tiny-log
Simple and small logger for node and the browser.
Last updated 4 years ago by yerkopalma .
Original npm · Tarball · package.json
$ cnpm install @yerkopalma/tiny-log 
SYNC missed versions from official npm registry.

tiny-log

Simple and small logger for node and the browser.

Install

$ npm install --save-dev tiny-log

Usage

var log = require('tiny-log')

// in production, all log messagges lower than warning will be omited
log.LEVEL = process.env.NODE_ENV === 'production'
            ? 'warn'
            : 'debug'

log.debug('debug')
log.warn('debug')
log.error('debug')
log.fatal('Oh boy...')

log.dump({
  hello: 'world'
})

Current Tags

  • 0.1.0                                ...           latest (4 years ago)

1 Versions

  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 1
Last Month 1
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None