support logging request logs and database query logs to separate files, and support rotating log files

This commit is contained in:
MaysWind
2024-08-07 23:16:01 +08:00
parent ea8021b359
commit 946a7810a7
6 changed files with 291 additions and 12 deletions
+10
View File
@@ -0,0 +1,10 @@
package errs
import (
"net/http"
)
// Error codes related to logging
var (
ErrLoggingError = NewSystemError(SystemSubcategoryLogging, 0, http.StatusInternalServerError, "logging error")
)