mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
Add notes for the new lead maintainer of the open-source iris project and align with @get-ion/ion by @hiveminded
Former-commit-id: da4f38eb9034daa49446df3ee529423b98f9b331
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
// Copyright 2017 Gerasimos Maropoulos, ΓΜ. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package logger provides request logging via middleware. See _examples/beginner/request-logger
|
||||
// Package logger provides request logging via middleware. See _examples/http_request/request-logger
|
||||
package logger
|
||||
|
||||
import (
|
||||
@@ -49,7 +45,7 @@ func (l *requestLoggerMiddleware) ServeHTTP(ctx context.Context) {
|
||||
}
|
||||
|
||||
//finally print the logs, no new line, the framework's logger is responsible how to render each log.
|
||||
ctx.Application().Log("%v %4v %s %s %s", status, latency, ip, method, path)
|
||||
ctx.Application().Logger().Infof("%v %4v %s %s %s", status, latency, ip, method, path)
|
||||
}
|
||||
|
||||
// New creates and returns a new request logger middleware.
|
||||
|
||||
Reference in New Issue
Block a user