Documentation ¶
Index ¶
- Constants
- func InitializeLogging(comp string)
- type FilteredLogger
- func (l FilteredLogger) Critical() *FilteredLogger
- func (l FilteredLogger) Debug() *FilteredLogger
- func (l FilteredLogger) Error() *FilteredLogger
- func (l FilteredLogger) Info() *FilteredLogger
- func (l FilteredLogger) Log(params ...interface{}) error
- func (l FilteredLogger) Msg(msg interface{})
- func (l FilteredLogger) Msgf(msg string, args ...interface{})
- func (l FilteredLogger) Object(obj LoggableObject) *FilteredLogger
- func (l FilteredLogger) Reason(err error) *FilteredLogger
- func (l *FilteredLogger) SetIOWriter(w io.Writer)
- func (l *FilteredLogger) SetLogLevel(filterLevel logLevel) error
- func (l *FilteredLogger) SetLogger(logger log.Logger) *FilteredLogger
- func (l *FilteredLogger) SetVerbosityLevel(level int) error
- func (l FilteredLogger) V(level int) *FilteredLogger
- func (l FilteredLogger) Warning() *FilteredLogger
- func (l *FilteredLogger) With(obj ...interface{}) *FilteredLogger
- func (l *FilteredLogger) WithPrefix(obj ...interface{}) *FilteredLogger
- type LogError
- type LoggableObject
- type NullLogger
Constants ¶
View Source
const ( DEBUG logLevel = iota INFO WARNING ERROR CRITICAL )
Variables ¶
This section is empty.
Functions ¶
func InitializeLogging ¶
func InitializeLogging(comp string)
Types ¶
type FilteredLogger ¶
type FilteredLogger struct {
// contains filtered or unexported fields
}
func DefaultLogger ¶
func DefaultLogger() *FilteredLogger
func Logger ¶
func Logger(component string) *FilteredLogger
func MakeLogger ¶
func MakeLogger(logger log.Logger) *FilteredLogger
Wrap a go-kit logger in a FilteredLogger. Not cached
func (FilteredLogger) Critical ¶
func (l FilteredLogger) Critical() *FilteredLogger
func (FilteredLogger) Debug ¶
func (l FilteredLogger) Debug() *FilteredLogger
func (FilteredLogger) Error ¶
func (l FilteredLogger) Error() *FilteredLogger
func (FilteredLogger) Info ¶
func (l FilteredLogger) Info() *FilteredLogger
func (FilteredLogger) Log ¶
func (l FilteredLogger) Log(params ...interface{}) error
func (FilteredLogger) Msg ¶
func (l FilteredLogger) Msg(msg interface{})
func (FilteredLogger) Msgf ¶
func (l FilteredLogger) Msgf(msg string, args ...interface{})
func (FilteredLogger) Object ¶
func (l FilteredLogger) Object(obj LoggableObject) *FilteredLogger
func (FilteredLogger) Reason ¶
func (l FilteredLogger) Reason(err error) *FilteredLogger
func (*FilteredLogger) SetIOWriter ¶
func (l *FilteredLogger) SetIOWriter(w io.Writer)
func (*FilteredLogger) SetLogLevel ¶
func (l *FilteredLogger) SetLogLevel(filterLevel logLevel) error
func (*FilteredLogger) SetLogger ¶
func (l *FilteredLogger) SetLogger(logger log.Logger) *FilteredLogger
func (*FilteredLogger) SetVerbosityLevel ¶
func (l *FilteredLogger) SetVerbosityLevel(level int) error
func (FilteredLogger) V ¶
func (l FilteredLogger) V(level int) *FilteredLogger
It would be consistent to return an error from this function, but a multi-value function would break the primary use case: log.V(2).Info()....
func (FilteredLogger) Warning ¶
func (l FilteredLogger) Warning() *FilteredLogger
func (*FilteredLogger) With ¶
func (l *FilteredLogger) With(obj ...interface{}) *FilteredLogger
func (*FilteredLogger) WithPrefix ¶
func (l *FilteredLogger) WithPrefix(obj ...interface{}) *FilteredLogger
type LoggableObject ¶
type LoggableObject interface { metav1.ObjectMetaAccessor k8sruntime.Object }
type NullLogger ¶
type NullLogger struct{}
func (NullLogger) Log ¶
func (n NullLogger) Log(params ...interface{}) error
Click to show internal directories.
Click to hide internal directories.