2.0.0 • Published 10 months ago

@burstware/burst-log v2.0.0

Weekly downloads
50
License
MIT
Repository
github
Last release
10 months ago

Burst Log Build Status Coverage

NPM

Burst logging tool

Usage

The following values are available for log levels on the LOG_LEVEL environment variable:

  • emerg
  • alert
  • crit
  • error
  • warning
  • notice
  • info (default)
  • debug
const log = require('@burstware/burst-log')

log.emerg("127.0.0.1 - there's no place like home")
log.alert("127.0.0.1 - there's no place like home")
log.crit("127.0.0.1 - there's no place like home")
log.error("127.0.0.1 - there's no place like home")
log.warning("127.0.0.1 - there's no place like home")
log.notice("127.0.0.1 - there's no place like home")
log.info("127.0.0.1 - there's no place like home")
// Note: LOG_LEVEL=debug must be set on the environment to see debug level logs
log.debug("127.0.0.1 - there's no place like home")

screenshot

Changelog

v2.0.0 Updated to support ESM. CJS is still supported via .default v1.1.0 Now the log level is defined by the environment variable LOG_LEVEL and is set to info by default

2.0.0

10 months ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago