Home

Awesome

A modern logger :page_with_curl: built on top of Winston with native support for emojis and Rollbar

Coverage Status Version Downloads

A modern logger :page_with_curl: built on top of Winston with native support for emojis and Rollbar

Features

How to install

npm install modern-logger

How to use

Use it in your app

const Logger = require('modern-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

How to contribute

You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.

All donation proceedings will go to the Sverige för UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.

Used by

License

Read the license for permissions and limitations.