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

Function With

log/log.go:22–24  ·  view source on GitHub ↗

With creates a child logger with the field added to its context.

()

Source from the content-addressed store, hash-verified

20
21// With creates a child logger with the field added to its context.
22func With() zerolog.Context {
23 return Logger.With()
24}
25
26// Level creates a child logger with the minimum accepted level set to level.
27func Level(level zerolog.Level) zerolog.Logger {

Callers 2

ExampleWithFunction · 0.92
NewHandlerFunction · 0.92

Calls 1

WithMethod · 0.80

Tested by 1

ExampleWithFunction · 0.74