Download modules/logging_config.py from Unstoppable0/modexla: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/Unstoppable0/modexla/resolve/main/modules/logging_config.py
- Command line
-
hf download hf://Unstoppable0/modexla/modules/logging_config.py
-
curl -L -o logging_config.py https://huggingface.co/Unstoppable0/modexla/resolve/main/modules/logging_config.py
413 Bytes
| import os | |
| import logging | |
| def setup_logging(loglevel): | |
| if loglevel is None: | |
| loglevel = os.environ.get("SD_WEBUI_LOG_LEVEL") | |
| if loglevel: | |
| log_level = getattr(logging, loglevel.upper(), None) or logging.INFO | |
| logging.basicConfig( | |
| level=log_level, | |
| format='%(asctime)s %(levelname)s [%(name)s] %(message)s', | |
| datefmt='%Y-%m-%d %H:%M:%S', | |
| ) | |