From 953c589b3236df613a769d52cbf6e0b3e1cc3982 Mon Sep 17 00:00:00 2001 From: Damon Zhao Date: Sat, 13 Sep 2014 12:40:37 +0800 Subject: [PATCH] change %4s to %-7s for align --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index 878ce19f..4a95f66c 100644 --- a/logger.go +++ b/logger.go @@ -92,7 +92,7 @@ func Logger() HandlerFunc { } end := time.Now() 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"), color, code, reset, latency,