Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
/ apheleia Public archive

fast & simplistic logger.

License

Notifications You must be signed in to change notification settings

SerayaEryn/apheleia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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