# imageglobals¶

error_level is the problem level (see BatteryRunners) at which an error will be raised, by the batteryrunners log_raise method. Thus a level of 0 will result in an error for any problem at all, and a level of 50 will mean no errors will be raised (unless someone’s put some strange problem_level > 50 code in).

logger is the default logger (python log instance)

To set the log level (log message appears for problem of level >= log level), use e.g. logger.level = 40.

As for most loggers, if logger.level == 0 then a default log level is used - use logger.getEffectiveLevel() to see what that default is.

Use logger.level = 1 to see all messages.

 ErrorLevel(level) Context manager to set log error level LoggingOutputSuppressor Context manager to prevent global logger from printing

## ErrorLevel¶

class nibabel.imageglobals.ErrorLevel(level)

Bases: object

Context manager to set log error level

__init__(level)

Initialize self. See help(type(self)) for accurate signature.

## LoggingOutputSuppressor¶

class nibabel.imageglobals.LoggingOutputSuppressor

Bases: object

Context manager to prevent global logger from printing

__init__(\$self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.