mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-09-18 01:59:48 +02:00
Added log start flags
- Added log rotate function (experimental) - Added disable log function #802 - Added log compression for rotated file (experimental)
This commit is contained in:
@@ -384,6 +384,7 @@ func initAPIs(targetMux *http.ServeMux) {
|
||||
authRouter.HandleFunc("/api/log/read", LogViewer.HandleReadLog)
|
||||
authRouter.HandleFunc("/api/log/summary", LogViewer.HandleReadLogSummary)
|
||||
authRouter.HandleFunc("/api/log/errors", LogViewer.HandleLogErrorSummary)
|
||||
authRouter.HandleFunc("/api/log/rotate/debug.trigger", SystemWideLogger.HandleDebugTriggerLogRotation)
|
||||
//Debug
|
||||
authRouter.HandleFunc("/api/info/pprof", pprof.Index)
|
||||
}
|
||||
|
Reference in New Issue
Block a user