MCPcopy
hub / github.com/tuna/tunasync / newLineHandler

Function newLineHandler

internal/logger.go:128–136  ·  view source on GitHub ↗
(w io.Writer, level slog.Leveler, addSource, withSystemd bool)

Source from the content-addressed store, hash-verified

126}
127
128func 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
138func (h *lineHandler) Enabled(_ context.Context, level slog.Level) bool {
139 return level >= h.level.Level()

Callers 7

TestLoggerPanicMethodsFunction · 0.85
InitLoggerFunction · 0.85
currentHandlerFunction · 0.85

Calls

no outgoing calls