1.0.0-beta.1 • Published 7 years ago

@boldr/logger v1.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Boldr Logger :page_with_curl: 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 :white_check_mark:
  • Pick between 1341 emojis from node-emoji to give a little bit of more coolness :sunglasses: to your logs :page_with_curl: :white_check_mark:
  • Supports Bluebird :bird: promises :white_check_mark:

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

VariableDescriptionRequiredDefault value
LOG_LEVELThe log level verbosity.falseinfo
ENVIRONMENTThe environment the app is running on.falseundefined
VERSIONThe version of the app.falseundefined
VERSION_COMMITThe current code commit of the app.falseundefined
ROLLBAR_API_KEYThe server API key used to talk with Rollbar.falseundefined