1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 12:31:58 +00:00

add TraceRoute feature on request logger

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-18 19:33:07 +03:00
parent e98fd21c83
commit 35ab1de212
4 changed files with 16 additions and 1 deletions

View File

@@ -37,12 +37,16 @@ type Config struct {
//
// Defaults to false.
PathAfterHandler bool
// Query will append the URL Query to the Path.
// Path should be true too.
//
// Defaults to false.
Query bool
// TraceRoute displays the debug
// information about the current route executed.
//
// Defaults to false.
TraceRoute bool
// Columns will display the logs as a formatted columns-rows text (bool).
// If custom `LogFunc` has been provided then this field is useless and users should
@@ -100,6 +104,7 @@ func DefaultConfig() Config {
Path: true,
PathAfterHandler: false,
Query: false,
TraceRoute: false,
Columns: false,
LogFunc: nil,
LogFuncCtx: nil,