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

Function newFormatterCommon

logger/formatter_common.go:25–30  ·  view source on GitHub ↗

newHandlerFormatterCommon creates a new formatterCommon instance.

(groups []attrGroup, buf *buffer)

Source from the content-addressed store, hash-verified

23
24// newHandlerFormatterCommon creates a new formatterCommon instance.
25func newFormatterCommon(groups []attrGroup, buf *buffer) formatterCommon {
26 return formatterCommon{
27 buf: buf,
28 groups: groups,
29 }
30}
31
32// levelName returns the name of the log level.
33func (s *formatterCommon) levelName(lvl slog.Level) string {

Callers 3

newFormatterJSONFunction · 0.85
newFormatterStructuredFunction · 0.85
newFormatterPrettyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected