@magic/log
simple server side logging.
basically console.log + loglevels + process.env awareness
html-docs
![Known Vulnerabilities](https://snyk.io/test/github/magic/log/badge.svg)
installation:
npm install @magic/log
usage:
import
import log from '@magic/log'
log levels
log.setLevel('all')
log.setLevel(0)
log.setLevel('warn')
log.setLevel(1)
log.setLevel('error')
log.setLevel(2)
log.resetLevel()
log.getLevel()
log functions
log.info('Some interesting yet useless information')
log.success('yay', 'only the first', 'argument was green')
log.error('ERROR:', 'error messsage')
log.warn('WARN:', 'warn message')
log.annotate('Annotate this message')
changelog
v0.0.3
log.error now converts errors for better logging
v0.1.0
use ecmascript modules
v0.1.1
bump to get this version to be the default for install.
0.1.0-cjs was preferred, but is deprecated.