@matter-in-motion/loggers.pino
v1.0.0
Published
Matter in Motion Extension. Logger Pino
Downloads
1
Maintainers
Readme
Matter In Motion
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.