MCPcopy
hub / github.com/canopy-network/canopy / NewNullLogger

Function NewNullLogger

lib/log.go:248–253  ·  view source on GitHub ↗

NewNullLogger() creates a Logger that discards all log output

()

Source from the content-addressed store, hash-verified

246
247// NewNullLogger() creates a Logger that discards all log output
248func NewNullLogger() LoggerI {
249 return NewLogger(LoggerConfig{
250 Level: DebugLevel,
251 Out: io.Discard,
252 })
253}
254
255// colorStringWithFormat() returns a formatted string with color applied
256func colorStringWithFormat(c int, format string, args ...any) string {

Callers 3

TestStartFunction · 0.92
newTestP2PNodeWithConfigFunction · 0.92
TestNewNullLoggerFunction · 0.85

Calls 1

NewLoggerFunction · 0.85

Tested by 3

TestStartFunction · 0.74
newTestP2PNodeWithConfigFunction · 0.74
TestNewNullLoggerFunction · 0.68