Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1 KB

README.md

File metadata and controls

36 lines (21 loc) · 1 KB

Matter In Motion

NPM Version NPM Downloads

Node.js framework for building applications (cli, server, etc...).

Pino

Matter In Motion extension for pino logger

Installation

npm i @matter-in-motion/loggers.pino

Settings

  • pino
    • options
    • destination

Both settings are described here

Usage

const logger = app.require('loggers.pino').get('app');

get(unitName)

Return a child logger with added unit information

All loggers units are required to have one method get(unitName) that returns an actual logger instance with { unit: unitName } added to every message.

License: MIT.