@matter-in-motion/loggers.pino

1.0.0 • Public • Published

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.

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.94 kB

Total Files

7

Last publish

Collaborators

  • velocityzen