log format (#1060)

This commit is contained in:
田欧 2017-08-14 14:34:29 +08:00 committed by Bo-Yi Wu
parent 25d20a4463
commit 52c2ed34b3
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ func LoggerWithWriter(out io.Writer, notlogged ...string) HandlerFunc {
path = path + "?" + raw
}
fmt.Fprintf(out, "[GIN] %v |%s %3d %s| %13v | %15s |%s %s %-7s %s\n%s",
fmt.Fprintf(out, "[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %s\n%s",
end.Format("2006/01/02 - 15:04:05"),
statusColor, statusCode, reset,
latency,