mirror of https://github.com/gin-gonic/gin.git
Cosmetic change in logger()
This commit is contained in:
parent
51a64abe86
commit
3948dac8c4
|
@ -61,7 +61,7 @@ func LoggerWithWriter(out io.Writer) HandlerFunc {
|
||||||
methodColor := colorForMethod(method)
|
methodColor := colorForMethod(method)
|
||||||
comment := c.Errors.String()
|
comment := c.Errors.String()
|
||||||
|
|
||||||
fmt.Fprintf(out, "[GIN] %v |%s %3d %s| %12v | %s |%s %s %-7s %s\n%s",
|
fmt.Fprintf(out, "[GIN] %v |%s %3d %s| %13v | %s |%s %s %-7s %s\n%s",
|
||||||
end.Format("2006/01/02 - 15:04:05"),
|
end.Format("2006/01/02 - 15:04:05"),
|
||||||
statusColor, statusCode, reset,
|
statusColor, statusCode, reset,
|
||||||
latency,
|
latency,
|
||||||
|
|
Loading…
Reference in New Issue