change %4s to %-7s for align
This commit is contained in:
parent
6634f04d9b
commit
953c589b32
@ -92,7 +92,7 @@ func Logger() HandlerFunc {
|
|||||||
}
|
}
|
||||||
end := time.Now()
|
end := time.Now()
|
||||||
latency := end.Sub(start)
|
latency := end.Sub(start)
|
||||||
stdlogger.Printf("[GIN] %v |%s %3d %s| %12v | %s |%s %4s %s| %s\n%s",
|
stdlogger.Printf("[GIN] %v |%s %3d %s| %12v | %s |%s %-7s %s| %s\n%s",
|
||||||
end.Format("2006/01/02 - 15:04:05"),
|
end.Format("2006/01/02 - 15:04:05"),
|
||||||
color, code, reset,
|
color, code, reset,
|
||||||
latency,
|
latency,
|
||||||
|
Loading…
Reference in New Issue
Block a user