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

Function newEventLogger

pkg/util/events.go:36–41  ·  view source on GitHub ↗
(freq int)

Source from the content-addressed store, hash-verified

34}
35
36func newEventLogger(freq int) log.Logger {
37 l := log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr))
38 l = log.WithPrefix(l, key, event)
39 l = log.With(l, "ts", log.DefaultTimestampUTC)
40 return &samplingFilter{next: l, freq: freq}
41}
42
43type samplingFilter struct {
44 next log.Logger

Callers 1

InitEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected