MCPcopy
hub / github.com/kubernetes/client-go / StartLogging

Method StartLogging

tools/record/event.go:255–260  ·  view source on GitHub ↗

StartLogging starts sending events received from this EventBroadcaster to the given logging function. The return value can be ignored or used to stop recording, if desired.

(logf func(format string, args ...interface{}))

Source from the content-addressed store, hash-verified

253// StartLogging starts sending events received from this EventBroadcaster to the given logging function.
254// The return value can be ignored or used to stop recording, if desired.
255func (eventBroadcaster *eventBroadcasterImpl) StartLogging(logf func(format string, args ...interface{})) watch.Interface {
256 return eventBroadcaster.StartEventWatcher(
257 func(e *v1.Event) {
258 logf("Event(%#v): type: '%v' reason: '%v' %v", e.InvolvedObject, e.Type, e.Reason, e.Message)
259 })
260}
261
262// StartEventWatcher starts sending events received from this EventBroadcaster to the given event handler function.
263// The return value can be ignored or used to stop recording, if desired.

Callers

nothing calls this directly

Calls 1

StartEventWatcherMethod · 0.95

Tested by

no test coverage detected