Neoanthropic Preternatural Murmurings

    fh-pino-logger

    0.0.2 • Public • Published

    fh-pino-logger

    Build Status

    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 --save

    Name 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.

    Install

    npm i fh-pino-logger

    DownloadsWeekly Downloads

    4

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • col1985