SerayaEryn / apheleia

fast & simplistic logger.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

fast & simplistic logger.

License:MIT License


Languages

Language:JavaScript 99.9%Language:TypeScript 0.1%