chore: add logger.SysLogf function

This commit is contained in:
JustSong
2024-06-13 00:28:56 +08:00
parent f74577141c
commit 6ccf3f3cfc
2 changed files with 9 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ var buildFS embed.FS
func main() {
logger.SetupLogger()
logger.SysLog(fmt.Sprintf("One API %s started", common.Version))
logger.SysLogf("One API %s started", common.Version)
if os.Getenv("GIN_MODE") != "debug" {
gin.SetMode(gin.ReleaseMode)
}