mirror of
https://github.com/kataras/iris.git
synced 2025-12-28 15:27:03 +00:00
update dependencies
This commit is contained in:
@@ -69,7 +69,7 @@ type Config struct {
|
||||
// LogFunc is the writer which logs are written to,
|
||||
// if missing the logger middleware uses the app.Logger().Infof instead.
|
||||
// Note that message argument can be empty.
|
||||
LogFunc func(endTime time.Time, latency time.Duration, status, ip, method, path string, message interface{}, headerMessage interface{})
|
||||
LogFunc func(endTime time.Time, latency time.Duration, status, ip, method, path string, message any, headerMessage any)
|
||||
// LogFuncCtx can be used instead of `LogFunc` if handlers need to customize the output based on
|
||||
// custom request-time information that the LogFunc isn't aware of.
|
||||
LogFuncCtx func(ctx *context.Context, latency time.Duration)
|
||||
|
||||
@@ -86,7 +86,7 @@ func (l *requestLoggerMiddleware) ServeHTTP(ctx *context.Context) {
|
||||
status = strconv.Itoa(ctx.GetStatusCode())
|
||||
}
|
||||
|
||||
var message interface{}
|
||||
var message any
|
||||
if ctxKeys := l.config.MessageContextKeys; len(ctxKeys) > 0 {
|
||||
for _, key := range ctxKeys {
|
||||
msg := ctx.Values().Get(key)
|
||||
@@ -97,7 +97,7 @@ func (l *requestLoggerMiddleware) ServeHTTP(ctx *context.Context) {
|
||||
}
|
||||
}
|
||||
}
|
||||
var headerMessage interface{}
|
||||
var headerMessage any
|
||||
if headerKeys := l.config.MessageHeaderKeys; len(headerKeys) > 0 {
|
||||
for _, key := range headerKeys {
|
||||
msg := ctx.GetHeader(key)
|
||||
|
||||
Reference in New Issue
Block a user