You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: enhance logging with caller information and structured output (#137)
- Add imports for `path/filepath` and `runtime`
- Remove `log.Lshortfile` from logger initialization
- Add `logWithCallerf` method to include caller information in formatted log messages
- Add `logWithCaller` method to include caller information in log messages
- Update `Errorf` method to use `logWithCallerf` for logging
- Update `Fatalf` method to use `logWithCallerf` for logging and ensure program exit
- Update `Error` method to use `logWithCaller` for logging
- Update `Fatal` method to use `logWithCaller` for logging and ensure program exit
Signed-off-by: appleboy <[email protected]>
0 commit comments