From da123c7cdce942185cc1785e630dba5acd3d5e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Depierrepont=20aka=20Toorop?= Date: Tue, 27 Sep 2016 13:04:40 +0200 Subject: [PATCH] add hostname on msg --- logger.go | 1 + 1 file changed, 1 insertion(+) diff --git a/logger.go b/logger.go index 2aab6a3..1e8c8fe 100644 --- a/logger.go +++ b/logger.go @@ -41,6 +41,7 @@ func Logger(log *logrus.Logger) gin.HandlerFunc { } entry := logrus.NewEntry(log).WithFields(logrus.Fields{ + "hostname": hostname, "statusCode": statusCode, "latency": latency, // time to process "clientIP": clientIP,