7. Environment variables

There are two environment variables which you can use to control the logging behaviour of the PopEF library.

7.1. POPEF_LOG_DEST

POPEF_LOG_DEST defines the output for the logging information.

The available options are:

  • stderr : The PopEF library will stream logging messages to the standard error stream.

  • stdout : The PopEF library will stream logging messages to the standard output stream.

  • <filename> : The PopEF library will stream logging messages to the user-defined file.

The default is stderr, if POPEF_LOG_DEST is not defined.

7.2. POPEF_LOG_LEVEL

POPEF_LOG_LEVEL allows you to manage the amount of information written to the log destination.

The logging levels, in decreasing verbosity, are:

  • TRACE or TRACE_ALL

  • DEBUG

  • INFO

  • WARN

  • ERR

  • OFF

The default log level is WARN, if POPEF_LOG_LEVEL is not defined.