apheleia
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

apheleia

Build Status Coverage Status NPM version JavaScript Style Guide

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

Documentation

License

MIT

Package Sidebar

Install

npm i apheleia

Weekly Downloads

11

Version

3.0.0

License

MIT

Unpacked Size

18 kB

Total Files

13

Last publish

Collaborators

  • serayaeryn