mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
logging: several improvements
Former-commit-id: 12538c74a1aa55314c35ac3cf2665646b704851d
This commit is contained in:
@@ -33,9 +33,9 @@ func newApp() *iris.Application {
|
||||
}
|
||||
|
||||
func getHandler(ctx iris.Context) {
|
||||
ctx.Writef("From %s", ctx.GetCurrentRoute().Trace())
|
||||
ctx.Writef("From GET: %s", ctx.GetCurrentRoute().MainHandlerName())
|
||||
}
|
||||
|
||||
func anyHandler(ctx iris.Context) {
|
||||
ctx.Writef("From %s", ctx.GetCurrentRoute().Trace())
|
||||
ctx.Writef("From %s: %s", ctx.Method(), ctx.GetCurrentRoute().MainHandlerName())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user