ai-chat-ui/server/core/__init__.py

42 lines
773 B
Python

"""
日志模块
提供统一的日志管理功能,支持结构化日志、文件轮转、多级别日志等。
"""
from .logger import (
LoggerSetup,
setup_global_logger,
get_logger,
log_debug,
log_info,
log_warning,
log_error,
log_critical,
log_exception,
log_structured,
log_request_info,
log_response_info,
log_error_detail,
log_chat_interaction,
log_system_status,
)
__all__ = [
"LoggerSetup",
"setup_global_logger",
"get_logger",
"log_debug",
"log_info",
"log_warning",
"log_error",
"log_critical",
"log_exception",
"log_structured",
"log_request_info",
"log_response_info",
"log_error_detail",
"log_chat_interaction",
"log_system_status",
]