mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 10:57:05 +00:00
fix the bug of lost argument in log function
Former-commit-id: 566a0c8bff8e77d5d12c1b4d10b3c69be0a962ba
This commit is contained in:
@@ -85,8 +85,8 @@ func newRequestLogger() (h iris.Handler, close func() error) {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
c.LogFunc = func(now time.Time, latency time.Duration, status, ip, method, path string, message interface{}) {
|
c.LogFunc = func(now time.Time, latency time.Duration, status, ip, method, path string, message interface{},headerMessage interface{}) {
|
||||||
output := logger.Columnize(now.Format("2006/01/02 - 15:04:05"), latency, status, ip, method, path, message)
|
output := logger.Columnize(now.Format("2006/01/02 - 15:04:05"), latency, status, ip, method, path, message, headerMessage)
|
||||||
logFile.Write([]byte(output))
|
logFile.Write([]byte(output))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user