LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'file_app': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/eveai_app.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'file_workers': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/eveai_workers.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'file_chat': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/eveai_chat.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'file_chat_workers': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/eveai_chat_workers.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'file_sqlalchemy': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/sqlalchemy.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'file_mailman': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/mailman.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'file_security': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/security.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'file_rag_tuning': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/rag_tuning.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'file_embed_tuning': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'logs/rag_tuning.log', 'maxBytes': 1024*1024*5, # 5MB 'backupCount': 10, 'formatter': 'standard', }, 'console': { 'class': 'logging.StreamHandler', 'level': 'DEBUG', 'formatter': 'standard', }, }, 'formatters': { 'standard': { 'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s' }, }, 'loggers': { 'eveai_app': { # logger for the eveai_app 'handlers': ['file_app',], 'level': 'DEBUG', 'propagate': False }, 'eveai_workers': { # logger for the eveai_workers 'handlers': ['file_workers',], 'level': 'DEBUG', 'propagate': False }, 'eveai_chat': { # logger for the eveai_chat 'handlers': ['file_chat',], 'level': 'DEBUG', 'propagate': False }, 'eveai_chat_workers': { # logger for the eveai_chat_workers 'handlers': ['file_chat_workers',], 'level': 'DEBUG', 'propagate': False }, 'sqlalchemy.engine': { # logger for the sqlalchemy 'handlers': ['file_sqlalchemy',], 'level': 'DEBUG', 'propagate': False }, 'mailman': { # logger for the mailman 'handlers': ['file_mailman', 'console'], 'level': 'DEBUG', 'propagate': False }, 'security': { # logger for the security 'handlers': ['file_security', 'console'], 'level': 'DEBUG', 'propagate': False }, 'rag_tuning': { # logger for the rag_tuning 'handlers': ['file_rag_tuning', 'console'], 'level': 'DEBUG', 'propagate': False }, 'embed_tuning': { # logger for the embed_tuning 'handlers': ['file_embed_tuning', 'console'], 'level': 'DEBUG', 'propagate': False }, '': { # root logger 'handlers': ['console'], 'level': 'WARNING', # Set higher level for root to minimize noise 'propagate': False }, } }