mne.set_log_level#
- mne.set_log_level(verbose=None, return_old_level=False, add_frames=None)[source]#
Set the logging level.
- Parameters:
- verbose
bool
,str
,int
, orNone
The verbosity of messages to print. If a str, it can be either DEBUG, INFO, WARNING, ERROR, or CRITICAL. Note that these are for convenience and are equivalent to passing in logging.DEBUG, etc. For bool, True is the same as ‘INFO’, False is the same as ‘WARNING’. If None, the environment variable MNE_LOGGING_LEVEL is read, and if it doesn’t exist, defaults to INFO.
- return_old_level
bool
If True, return the old verbosity level.
- add_frames
int
|None
If int, enable (>=1) or disable (0) the printing of stack frame information using formatting. Default (None) does not change the formatting. This can add overhead so is meant only for debugging.
- verbose
- Returns:
- old_level
int
The old level. Only returned if
return_old_level
is True.
- old_level
Examples using mne.set_log_level
#
Configuring MNE-Python