Edurag_beta / app /logging_config.py
Nugh75's picture
update ristrutturazione file app.py con divisione file
47e4aa2
raw
history blame
284 Bytes
import logging
from dotenv import load_dotenv
# Carica variabili d'ambiente dal file .env
load_dotenv()
def configure_logging():
logging.basicConfig(
filename="rag_chatbot.log",
level=logging.INFO,
format="%(asctime)s - %(levelname)s - %(message)s"
)