MCPcopy
hub / github.com/netdata/netdata / newTestLogger

Function newTestLogger

src/go/logger/testutils_test.go:71–74  ·  view source on GitHub ↗
(level slog.Level)

Source from the content-addressed store, hash-verified

69}
70
71func newTestLogger(level slog.Level) (*Logger, *captureHandler) {
72 handler := newCaptureHandler(level)
73 return &Logger{sl: slog.New(handler), rl: newRateLimiter()}, handler
74}

Calls 3

newCaptureHandlerFunction · 0.85
newRateLimiterFunction · 0.85
NewMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…