feat: Add logging and error handling enhancements
- Introduced new logging modules for action tracking, error logging, and performance tracking to improve observability. - Added functions for retrieving debug and error log paths in `path_config.py`. - Updated various components to utilize the new logging system, enhancing error handling and performance diagnostics. - Implemented a GUI component for viewing error logs, improving user experience in monitoring application issues. - Cleaned up unnecessary blank lines and improved code readability across multiple files.
This commit is contained in:
1 parent
bdf9312bc9
commit
efe6e2252f
48 files changed
+2165
-320
No files matched your search
@@ -23,6 +23,14 @@ def get_logs_dir() -> str:
|
||||
return os.path.join(PROJECT_ROOT, "logs")
|
||||
|
||||
|
||||
def get_debug_log_path() -> str:
|
||||
"""返回调试日志(debug.log)的路径"""
|
||||
return os.path.join(get_logs_dir(), "debug.log")
|
||||
|
||||
def get_error_log_path() -> str:
|
||||
"""返回错误日志(error.log)的路径"""
|
||||
return os.path.join(get_logs_dir(), "error.log")
|
||||
|
||||
def get_log_file_path() -> str:
|
||||
"""返回统一日志文件的路径"""
|
||||
return os.path.join(PROJECT_ROOT, "logs", "unified.log")
|
||||
|
||||
Reference in new issue
Block a user