Have ideas to improve npm?Join in the discussion! »

    @boldr/logger

    1.0.0-beta.1 • Public • Published

    Boldr Logger 📃 is built on top of Winston with native support for emojis and Rollbar

    Features

    • Uses Winston logging library under the hood
    • Enable Rollbar error tracking service as a transport from the environment ✅
    • Pick between 1341 emojis from node-emoji to give a little bit of more coolness 😎 to your logs 📃 ✅
    • Supports Bluebird 🐦 promises ✅

    How to install

    npm install @boldr/logger
    

    How to use

    Use it in your app

    const Logger = require('@boldr/logger')
     
    Logger.info('Launching :rocket: app to space :night_with_stars:')

    Available environment variables

    Variable Description Required Default value
    LOG_LEVEL The log level verbosity. false info
    ENVIRONMENT The environment the app is running on. false undefined
    VERSION The version of the app. false undefined
    VERSION_COMMIT The current code commit of the app. false undefined
    ROLLBAR_API_KEY The server API key used to talk with Rollbar. false undefined

    Keywords

    none

    Install

    npm i @boldr/logger

    DownloadsWeekly Downloads

    0

    Version

    1.0.0-beta.1

    License

    MIT

    Last publish

    Collaborators

    • avatar