apheleia
v3.0.0
Published
fast and simplistic logger.
Downloads
45
Maintainers
Readme
apheleia
Fast and simplistic logger supporting any Writable stream and custom formats.
Installation
npm i apheleia
Usage
const { createLogger } = require('apheleia')
const logger = createLogger()
logger.info('hello world')
const child = logger.child({ requestId: 'abcd' })
child.info('hello world')
This logs the following lines:
2019-04-19T09:23:50.902Z INFO hello world
2019-04-19T09:23:50.902Z INFO hello world requestId=abcd