Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.37 KB

logging.md

File metadata and controls

32 lines (22 loc) · 1.37 KB

Logging

This application uses the winston logging package to provide granular logging from verbose to error only.

It also uses the winston-papertrail package to optionally send logging to the papertrail, a cloud logging solution that provides web based viewing, filtering and log based alerts.

Changing the logging level

By default the application logs at the verbose level. You can reduce the amount of output that it writes to the console by setting the environment variable LOG_LEVEL to one of the following:

  • error
  • warn
  • info
  • verbose

Output to papertrail

If you would like to take advantage of papertrail logging, first setup an account at www.papertrail.com. Once your account is set up, add the following environment variables:

  • PAPERTRAIL
  • PAPERTRAIL_HOST - host provided by papertrail
  • PAPERTRAIL_PORT - port provided by papertrail

More Information