MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / newFormatterPretty

Function newFormatterPretty

logger/formatter_pretty.go:35–39  ·  view source on GitHub ↗

newFormatterPretty creates a new instance of formatterPretty.

(groups []attrGroup, buf *buffer)

Source from the content-addressed store, hash-verified

33
34// newFormatterPretty creates a new instance of formatterPretty.
35func newFormatterPretty(groups []attrGroup, buf *buffer) *formatterPretty {
36 return &formatterPretty{
37 formatterCommon: newFormatterCommon(groups, buf),
38 }
39}
40
41// format formats a log record as a pretty-printed string.
42func (s *formatterPretty) format(r slog.Record) {

Callers 1

formatMethod · 0.85

Calls 1

newFormatterCommonFunction · 0.85

Tested by

no test coverage detected