newFormatterPretty creates a new instance of formatterPretty.
(groups []attrGroup, buf *buffer)
| 33 | |
| 34 | // newFormatterPretty creates a new instance of formatterPretty. |
| 35 | func 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. |
| 42 | func (s *formatterPretty) format(r slog.Record) { |
no test coverage detected