Fast and simplistic logger supporting any Writable stream and custom formats.
npm i apheleiaimport { createLogger } from '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