package logs
import "k8s.io/kubernetes/pkg/kubectl/util/logs"
Index ¶
Functions ¶
func FlushLogs ¶
func FlushLogs()
FlushLogs flushes logs immediately.
func InitLogs ¶
func InitLogs()
InitLogs initializes logs the way we want for kubernetes.
func NewLogger ¶
NewLogger creates a new log.Logger which sends logs to klog.Info.
Types ¶
type KlogWriter ¶
type KlogWriter struct{}
KlogWriter serves as a bridge between the standard log package and the glog package.
func (KlogWriter) Write ¶
func (writer KlogWriter) Write(data []byte) (n int, err error)
Write implements the io.Writer interface.
Source Files ¶
logs.go
- Version
- v1.14.6
- Published
- Aug 16, 2019
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 3 minutes ago –
Tools for package owners.