Write implements the io.Writer interface.
(data []byte)
| 36 | |
| 37 | // Write implements the io.Writer interface. |
| 38 | func (writer KlogWriter) Write(data []byte) (n int, err error) { |
| 39 | klog.InfoDepth(1, string(data)) |
| 40 | return len(data), nil |
| 41 | } |
| 42 | |
| 43 | // InitLogs disables support for contextual logs in klog while |
| 44 | // that Kubernetes feature is not considered stable yet. Commands |