fh-pino-logger
v0.0.2
Published
Simple wrapper around Pino Logger for use RHMAP
Readme
fh-pino-logger
Simple implementation of light-weight and fast Pino Logger for use in RHMAP NodeJS cloud apps. For full API docs please see here.
Install
npm i fh-pino-logger --saveName logger
Set an environment variable process.env.LOG_NAME otherwise name defaults to fh-pino-logger.
Setting level
Logging level defaults to info when deployed to RHMAP. When working locally logger defaults to trace. You set the logger level to what ever you choose simply by
var log = require('fh-pino-logger');
log.level = 'warn'; This level change event will be recorded in the stdout logs.
General usage
log.fatal('fatal output');
log.error('error output');
log.warn('warn output');
log.info('info output');
log.debug('debug output');
log.trace('trace output'); Pull Requests
Any enhancements or contributions welcome.
