1
0
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:
kataras
2017-07-10 18:32:42 +03:00
parent 2d4c2779a7
commit 9f85b74fc9
344 changed files with 4842 additions and 5174 deletions

View File

@@ -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.