Socket
Book a DemoInstallSign in
Socket

modern-logger

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modern-logger

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

latest
Source
npmnpm
Version
1.5.97
Version published
Weekly downloads
15
-59.46%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

  • serverful - A kickass :muscle: web server :scream_cat: with all the bells :bell: and whistles :sparkles:

License

Read the license for permissions and limitations.

FAQs

Package last updated on 01 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts