lab-report-analyzer / logging_utils.py
mdasad3617's picture
Create logging_utils.py
2c9aac4 verified
raw
history blame
312 Bytes
# Utilities for logging.
import logging
def setup_logging(log_file='logs/app.log'):
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
handlers=[
logging.FileHandler(log_file),
logging.StreamHandler()
]
)