Skip to content

Adjust the log system to avoid logging too much by default

This MR is an adjustment of the log system so that it does not print too much information when it is not wanted.

The log system is the one used by ParaView. We use two different log levels.

The first one is obtained through the PARAVIEW_LOG_PLUGIN_VERBOSITY macro and is for global informations (not detailed ones). The second one is set to 'VERBOSITY_7' and is devoted to detailed informations.

The PARAVIEW_LOG_PLUGIN_VERBOSITY can be set through the environment variable of the same name. For example:

PARAVIEW_LOG_PLUGIN_VERBOSITY=INFO paraview

launch paraview with the plugin verbosity set to INFO level. As the default verbosity level is INFO, doing this allows to print the message of the plugin.

For detailed infos about the plugin, just do:

PARAVIEW_LOG_PLUGIN_VERBOSITY=INFO paraview -v 7

This way, the plugin verbosity is set to INFO level. As the verbosity level is 7, and as INFO is less than 7 we obtain log message of INFO and 7 level.

The value 7 has been chosen randomly between INFO level and 9 level, avoiding this last one as there are lots of Log message in PV with this level (also named TRACE level).

Closes #24 (closed)

Merge request reports