mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-02 04:20:50 +08:00
feat(logging): integrate logrus with custom Gin middleware for enhanced request logging and recovery
- Added `GinLogrusLogger` for structured request logging using Logrus. - Implemented `GinLogrusRecovery` to handle panics and log stack traces. - Configured log rotation using Lumberjack for efficient log management. - Replaced Gin's default logger and recovery middleware with the custom implementations.
This commit is contained in:
Reference in New Issue
Block a user