oggm.cfg.set_logging_config#

oggm.cfg.set_logging_config(logging_level='INFO')[source]#

Set the global logger parameters.

Logging levels:

DEBUG

Print detailed information, typically of interest only when diagnosing problems.

INFO

Print confirmation that things are working as expected, e.g. when each task is run correctly (this is the default).

WARNING

Indication that something unexpected happened on a glacier, but that OGGM is still working on this glacier.

ERROR

Print workflow messages and errors only, e.g. when a glacier cannot run properly.

WORKFLOW

Print only high level, workflow information (typically, one message per task). Errors and warnings will NOT be printed.

CRITICAL

Print nothing but fatal errors.

Parameters
logging_levelstr or None

the logging level. See description above for a list of options. Setting to None is equivalent to ‘CRITICAL’, i.e. no log output will be generated.