feat: create new log file when too many logs recorded

This commit is contained in:
JustSong
2023-09-17 16:35:30 +08:00
parent fe26a1448d
commit 4335f005a6
2 changed files with 27 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ var buildFS embed.FS
var indexPage []byte
func main() {
common.SetupGinLog()
common.SetupLogger()
common.SysLog("One API " + common.Version + " started")
if os.Getenv("GIN_MODE") != "debug" {
gin.SetMode(gin.ReleaseMode)