newHandlerFormatterCommon creates a new formatterCommon instance.
(groups []attrGroup, buf *buffer)
| 23 | |
| 24 | // newHandlerFormatterCommon creates a new formatterCommon instance. |
| 25 | func 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. |
| 33 | func (s *formatterCommon) levelName(lvl slog.Level) string { |
no outgoing calls
no test coverage detected