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

Function newFormatterStructured

logger/formatter_structured.go:16–20  ·  view source on GitHub ↗

newFormatterStructured creates a new formatterStructured instance.

(groups []attrGroup, buf *buffer)

Source from the content-addressed store, hash-verified

14
15// newFormatterStructured creates a new formatterStructured instance.
16func newFormatterStructured(groups []attrGroup, buf *buffer) *formatterStructured {
17 return &formatterStructured{
18 formatterCommon: newFormatterCommon(groups, buf),
19 }
20}
21
22// format formats a log record.
23func (s *formatterStructured) format(r slog.Record) {

Callers 1

formatMethod · 0.85

Calls 1

newFormatterCommonFunction · 0.85

Tested by

no test coverage detected