Skip to content

SerayaEryn/apheleia

Repository files navigation

apheleia

Build Status Coverage Status NPM version

Fast and simplistic logger supporting any Writable stream and custom formats.

Installation

npm i apheleia

Usage

import { 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

Documentation

License

MIT

About

fast & simplistic logger.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •