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

Method Logger

context.go:17–19  ·  view source on GitHub ↗

Logger returns the logger with the context previously set.

()

Source from the content-addressed store, hash-verified

15
16// Logger returns the logger with the context previously set.
17func (c Context) Logger() Logger {
18 return c.l
19}
20
21// Fields is a helper function to use a map or slice to set fields using type assertion.
22// Only map[string]interface{} and []interface{} are accepted. []interface{} must

Callers 15

ExampleLogger_WithFunction · 0.80
ExampleLogger_WriteFunction · 0.80
ExampleContext_DictFunction · 0.80
ExampleContext_ArrayFunction · 0.80
ExampleContext_ObjectFunction · 0.80
ExampleContext_ObjectsFunction · 0.80
ExampleContext_ObjectsVFunction · 0.80
ExampleContext_InterfaceFunction · 0.80
ExampleContext_DurFunction · 0.80
ExampleContext_DursFunction · 0.80

Calls

no outgoing calls

Tested by 15

ExampleLogger_WithFunction · 0.64
ExampleLogger_WriteFunction · 0.64
ExampleContext_DictFunction · 0.64
ExampleContext_ArrayFunction · 0.64
ExampleContext_ObjectFunction · 0.64
ExampleContext_ObjectsFunction · 0.64
ExampleContext_ObjectsVFunction · 0.64
ExampleContext_InterfaceFunction · 0.64
ExampleContext_DurFunction · 0.64
ExampleContext_DursFunction · 0.64