MCPcopy
hub / github.com/rs/zerolog / Reset

Method Reset

context.go:456–459  ·  view source on GitHub ↗

Reset removes all the context fields.

()

Source from the content-addressed store, hash-verified

454
455// Reset removes all the context fields.
456func (c Context) Reset() Context {
457 c.l.context = enc.AppendBeginMarker(make([]byte, 0, 500))
458 return c
459}
460
461type callerHook struct {
462 callerSkipFrameCount int

Callers 9

TestWithFunction · 0.80
TestWithResetFunction · 0.80
TestCallerMarshalFuncFunction · 0.80
WriteMethod · 0.80
TestTestWriterFunction · 0.80
CloseMethod · 0.80
BenchmarkLogStackFunction · 0.80

Calls 1

AppendBeginMarkerMethod · 0.65

Tested by 7

TestWithFunction · 0.64
TestWithResetFunction · 0.64
TestCallerMarshalFuncFunction · 0.64
TestTestWriterFunction · 0.64
BenchmarkLogStackFunction · 0.64