Set the current log level.
(level: str)
| 33 | |
| 34 | |
| 35 | def set_log_level(level: str): |
| 36 | """Set the current log level.""" |
| 37 | global _current_log_level |
| 38 | _current_log_level = LOG_LEVELS.get(level.upper(), logging.INFO) |
| 39 | |
| 40 | |
| 41 | def setup_file_logging(log_file: str): |