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

Function newSlogLogger

slog_test.go:16–19  ·  view source on GitHub ↗
(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

14)
15
16func newSlogLogger(buf *bytes.Buffer) *slog.Logger {
17 zl := zerolog.New(buf)
18 return slog.New(zerolog.NewSlogHandler(zl))
19}
20
21// decodeOutput converts the buffer contents to a JSON string,
22// handling CBOR-encoded output when built with the binary_log tag.

Calls 2

NewFunction · 0.92
NewSlogHandlerFunction · 0.92

Tested by

no test coverage detected