add hostname on msg

This commit is contained in:
Stéphane Depierrepont aka Toorop 2016-09-27 13:04:40 +02:00
parent b1978c0b59
commit da123c7cdc
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ func Logger(log *logrus.Logger) gin.HandlerFunc {
} }
entry := logrus.NewEntry(log).WithFields(logrus.Fields{ entry := logrus.NewEntry(log).WithFields(logrus.Fields{
"hostname": hostname,
"statusCode": statusCode, "statusCode": statusCode,
"latency": latency, // time to process "latency": latency, // time to process
"clientIP": clientIP, "clientIP": clientIP,