MCPcopy Create free account
hub / github.com/zalando/skipper / NewTestLog

Function NewTestLog

proxy/proxy_test.go:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func NewTestLog() *testLog {
91 oldOut := log.StandardLogger().Out
92 oldLevel := log.GetLevel()
93 log.SetLevel(log.DebugLevel)
94
95 tl := &testLog{oldOut: oldOut, oldLevel: oldLevel}
96 log.SetOutput(tl)
97 return tl
98}
99
100func (l *testLog) Write(p []byte) (int, error) {
101 l.mu.Lock()

Calls 3

GetLevelMethod · 0.80
SetOutputMethod · 0.80
SetLevelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…