(buf *bytes.Buffer)
| 14 | ) |
| 15 | |
| 16 | func 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. |
no test coverage detected