Spaces:
Sleeping
Sleeping
File size: 447 Bytes
47488ce 3d82323 47488ce 3d82323 47488ce 3d82323 918a6e7 47488ce 3d82323 47488ce 3d82323 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import os
import sys
import logging
logging_str = "[%(asctime)s: %(levelname)s: %(module)s %(message)s]"
__name__ = "kidney_classification"
log_dir = "logs"
log_filepath = os.path.join(log_dir, "running_logs.log")
os.makedirs(log_dir, exist_ok=True)
logging.basicConfig(
level=logging.INFO,
format=logging_str,
handlers=[logging.FileHandler(log_filepath), logging.StreamHandler(sys.stdout)],
)
logger = logging.getLogger(__name__)
|