From 30f014c7540d42fdc4035587621dbc2b3084bd19 Mon Sep 17 00:00:00 2001 From: Danieliu Date: Thu, 26 May 2016 16:21:50 +0800 Subject: [PATCH] fix default log format `reset` field should be after `method` in LoggerWithWriter function. --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index d56bc628..ff246a44 100644 --- a/logger.go +++ b/logger.go @@ -80,7 +80,7 @@ func LoggerWithWriter(out io.Writer, notlogged ...string) HandlerFunc { statusColor, statusCode, reset, latency, clientIP, - methodColor, reset, method, + methodColor, method, reset, path, comment, )