Skip to content
FacebookYouTubeX (Twitter)

Configure the Logging System

Pingstreams uses Winston as logging library. The Pingstreams server is configured with the following transports:

  • the console
  • logs files under /logs/app.log folder

The default log level is INFO. If you want to change the log level use the LOG_LEVEL environment property as follow:

LOG_LEVEL="verbose"

Optionally you can write the logs to the MongoDB database (adding a MongoDB transport to Winston) with the following environment property:

WRITE_LOG_TO_MONGODB="true"

You can also change (default value is INFO) the level for the MongoDB transport with the following property:

LOG_MONGODB_LEVEL="error"