Skip to content

matter-in-motion/loggers.pino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.