@offirmo/practical-logger-node
v0.3.0
Published
node-specific practical logger
Downloads
45
Readme
This is a node implementation of Offirmo’s practical logger.
Demo
Usage
import { createLogger } from '@offirmo/practical-logger-node'
const logger = createLogger()
logger.log('hello from logger!')
const fooLogger = createLogger({
name: 'Foo',
suggestedLevel: 'silly',
})
fooLogger.log('hello from fooLogger!', { bar: 42, baz: 33 })
TODO explanation
TODO https://www.stefanjudis.com/today-i-learned/node-js-has-a-built-in-debug-method/