Spaces:
Sleeping
Sleeping
Download utils/logger.py from ByteRiot/CandidateExplorer: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/spaces/ByteRiot/CandidateExplorer/resolve/main/utils/logger.py
- Command line
-
hf download hf://spaces/ByteRiot/CandidateExplorer/utils/logger.py
-
curl -L -o logger.py https://huggingface.co/spaces/ByteRiot/CandidateExplorer/resolve/main/utils/logger.py
209 Bytes
| import logging | |
| def get_logger(tag_name:str, level:int = logging.INFO): | |
| FORMAT = '%(message)s' | |
| logging.basicConfig(format=FORMAT, level=level) | |
| logger = logging.getLogger(tag_name) | |
| return logger |