AnimeRAGSystem / logger_config.py
Pushkar02-n's picture
Phase 1: RAG Pipeline working
1a2b9e6
raw
history blame contribute delete
353 Bytes
import logging
import sys
def setup_logging():
log_format = "%(asctime)s - %(levelname)s - [%(name)s - %(message)s]"
logging.basicConfig(
level=logging.INFO,
format=log_format,
handlers=[
logging.StreamHandler(sys.stdout), # Print to the console
logging.FileHandler("app.log")
]
)