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

Function currentHandler

internal/logger.go:121–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121func currentHandler() slog.Handler {
122 if h, ok := defaultHandler.Load().(slog.Handler); ok {
123 return h
124 }
125 return newLineHandler(os.Stdout, LevelNotice, false, false)
126}
127
128func newLineHandler(w io.Writer, level slog.Leveler, addSource, withSystemd bool) *lineHandler {
129 return &lineHandler{

Callers 3

withDefaultHandlerFunction · 0.85
logMethod · 0.85

Calls 1

newLineHandlerFunction · 0.85

Tested by 2

withDefaultHandlerFunction · 0.68