(w io.Writer, level slog.Leveler, addSource, withSystemd bool)
| 126 | } |
| 127 | |
| 128 | func newLineHandler(w io.Writer, level slog.Leveler, addSource, withSystemd bool) *lineHandler { |
| 129 | return &lineHandler{ |
| 130 | w: w, |
| 131 | level: level, |
| 132 | addSource: addSource, |
| 133 | withSystemd: withSystemd, |
| 134 | mu: &sync.Mutex{}, |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | func (h *lineHandler) Enabled(_ context.Context, level slog.Level) bool { |
| 139 | return level >= h.level.Level() |
no outgoing calls