1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 11:57:02 +00:00

accesslog: add CSV format

relative to: https://github.com/kataras/iris/issues/1601
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-12 12:34:59 +03:00
parent a30bbb61f7
commit 2b342a5122
11 changed files with 448 additions and 133 deletions

View File

@@ -52,13 +52,13 @@ func TestAccessLogPrint_Simple(t *testing.T) {
"Outcoming",
0,
0,
&context.RequestParams{
Store: []memstore.Entry{
{Key: "path_param", ValueRaw: "path_param_value"},
},
}, []memstore.StringEntry{
memstore.Store{
{Key: "path_param", ValueRaw: "path_param_value"},
},
[]memstore.StringEntry{
{Key: "url_query", Value: "url_query_value"},
}, []memstore.Entry{
},
[]memstore.Entry{
{Key: "custom", ValueRaw: "custom_value"},
})
}()
@@ -126,7 +126,7 @@ func TestAccessLogBroker(t *testing.T) {
"",
0,
0,
&context.RequestParams{},
nil,
nil,
nil,
)