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{}))
| 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. |
| 255 | func (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. |
nothing calls this directly
no test coverage detected