1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

Final touches for Logger

This commit is contained in:
Makis Maropoulos
2016-06-06 21:46:28 +03:00
parent c88f73acbe
commit 26f13cf5bf
3 changed files with 67 additions and 80 deletions

View File

@@ -75,9 +75,9 @@ func (l *loggerMiddleware) Serve(ctx *iris.Context) {
//finally print the logs
if l.options.Latency {
l.Infof("%s %v %4v %s %s %s \n", date, status, latency, ip, method, path)
l.Otherf("%s %v %4v %s %s %s \n", date, status, latency, ip, method, path)
} else {
l.Infof("%s %v %s %s %s \n", date, status, ip, method, path)
l.Otherf("%s %v %s %s %s \n", date, status, ip, method, path)
}
}