Skip to content

Logging module

Atis Elsts edited this page Oct 1, 2020 · 1 revision

The logging module is responsible for generation log output, showing it in the console and in the web interface, and saving it in the results directory.

Configuration

  • LOG_FILE - the name of a log file. If a relative path, assumed to be relative to the configuration file. If null, filename log.txt in the results directory is used. Default: null.
  • LOG_LEVELS - user-defined log levels for various topics. A dictionary of type string -> integer ("topic" -> log_level). Not set by default.
  • LOG_LEVELS_DEFAULT - the default logging levels for various predefined topics. A dictionary of type string -> integer ("topic" -> log_level). Should not be redefined by the user: use LOG_LEVELS instead! Default values are 3 for all topics.
  • LOG_LEVEL_DEFAULT_NOTOPIC - the log level for topics not included in the LOG_LEVELS_DEFAULT and LOG_LEVELS dictionaries. Non-negative integer, default value: 3.

Clone this wiki locally