1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-27 14:57:05 +00:00

accesslog: improvements

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-10 19:41:30 +03:00
parent bfb7b19096
commit facc94b725
5 changed files with 170 additions and 32 deletions

View File

@@ -57,6 +57,11 @@ type Log struct {
Ctx *context.Context `json:"-" yaml:"-" toml:"-"`
}
// Clone returns a raw copy value of this Log.
func (l *Log) Clone() Log {
return *l
}
// RequestValuesLine returns a string line which
// combines the path parameters, query and custom fields.
func (l *Log) RequestValuesLine() string {