package logs
import "k8s.io/kubectl/pkg/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
- v0.16.15
- Published
- Sep 2, 2020
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 41 seconds ago –
Tools for package owners.