SherpaVerbosity

class sherpa.utils.logging.SherpaVerbosity(level)[source] [edit on github]

Bases: AbstractContextManager

Set the output logging level for sherpa as a context.

This changes the logging level globally for all modules in sherpa.

Parameters:

loglevel (string or int) – New level for logging. Allowed strings are DEBUG, INFO, WARNING, ERROR, and CRITICAL