Explorar el Código

fix default log format

`reset` field should be after `method` in LoggerWithWriter function.
Danieliu hace 9 años
padre
commit
30f014c754
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      logger.go

+ 1 - 1
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,
 			)