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

acesslog new example: custom fields and custom template

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-10 21:40:30 +03:00
parent 2bb04823b0
commit 16a794a245
4 changed files with 55 additions and 2 deletions

View File

@@ -36,9 +36,9 @@ type Log struct {
// Sorted URL Query arguments.
Query []memstore.StringEntry `json:"query,omitempty"`
// Dynamic path parameters.
PathParams []memstore.Entry `json:"params,omitempty"`
PathParams memstore.Store `json:"params,omitempty"`
// Fields any data information useful to represent this Log.
Fields []memstore.Entry `json:"fields,omitempty"`
Fields memstore.Store `json:"fields,omitempty"`
// The actual number of bytes received and sent on the network (headers + body).
BytesReceived int `json:"bytes_received"`