15 lines
281 B
Go
15 lines
281 B
Go
|
package flog
|
||
|
|
||
|
|
||
|
func (flogger *internalFlogger) With(cascade ...interface{}) Flogger {
|
||
|
|
||
|
var x interface{} = flogger.context
|
||
|
var xs []interface{} = []interface{}{x}
|
||
|
|
||
|
newCascade := append(xs, cascade...)
|
||
|
|
||
|
newFlogger := New(flogger.router, newCascade...)
|
||
|
|
||
|
return newFlogger
|
||
|
}
|