Used as a context manager to log at the specified level temporarily and return to the previous level after exiting
level (int | str) – The logging level to use temporarily
int
str
None
Contents: