Documentation ¶
Overview ¶
Copied and modifed from https://github.com/kubernetes-sigs/kind/blob/v0.11.1/pkg/internal/cli/logger.go
Index ¶
- type Logger
- func (l *Logger) ColorEnabled() bool
- func (l *Logger) Error(message string)
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) SetVerbosity(verbosity log.Level)
- func (l *Logger) SetWriter(w io.Writer)
- func (l *Logger) V(level log.Level) log.InfoLogger
- func (l *Logger) Warn(message string)
- func (l *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the kind cli's log.Logger implementation
func (*Logger) ColorEnabled ¶
ColorEnabled returns true if the caller is OK to write colored output
func (*Logger) SetVerbosity ¶
SetVerbosity sets the loggers verbosity
func (*Logger) V ¶
func (l *Logger) V(level log.Level) log.InfoLogger
V is part of the log.Logger interface
Click to show internal directories.
Click to hide internal directories.