feat:added auto job

This commit is contained in:
zhangwenjian
2020-08-06 22:30:57 +08:00
parent 328f7d4f4f
commit 54f48377f0
20 changed files with 671 additions and 123 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ func CustomError(c *gin.Context) {
}
c.Status(statusCode)
fmt.Println(
time.Now().Format("2006-01-02 15:04:05.9999"),
time.Now().Format("2006-01-02 15:04:05"),
"[ERROR]",
c.Request.Method,
c.Request.URL,
+1 -1
View File
@@ -41,7 +41,7 @@ func LoggerToFile() gin.HandlerFunc {
// 日志格式
fmt.Printf("%s [INFO] %s %s %3d %13v %15s \r\n",
startTime.Format("2006-01-02 15:04:05.9999"),
startTime.Format("2006-01-02 15:04:05"),
reqMethod,
reqUri,
statusCode,