MCPcopy Create free account
hub / github.com/cortexproject/cortex / Log

Method Log

integration/e2e/logger.go:32–44  ·  view source on GitHub ↗
(keyvals ...any)

Source from the content-addressed store, hash-verified

30}
31
32func (l *Logger) Log(keyvals ...any) error {
33 log := strings.Builder{}
34 log.WriteString(time.Now().Format("15:04:05"))
35
36 for _, v := range keyvals {
37 log.WriteString(" " + fmt.Sprint(v))
38 }
39
40 log.WriteString("\n")
41
42 _, err := l.w.Write([]byte(log.String()))
43 return err
44}

Callers 12

TestRulerHAEvaluationFunction · 0.45
TestKVWatchAndDeleteFunction · 0.45
NewScenarioFunction · 0.45
StartMethod · 0.45
cleanMethod · 0.45
shutdownMethod · 0.45
existDockerNetworkFunction · 0.45
StartMethod · 0.45
StopMethod · 0.45
KillMethod · 0.45
WaitMethod · 0.45
WriteMethod · 0.45

Calls 3

WriteStringMethod · 0.80
StringMethod · 0.65
WriteMethod · 0.45

Tested by 2

TestRulerHAEvaluationFunction · 0.36
TestKVWatchAndDeleteFunction · 0.36