Documentation ¶
Index ¶
- type FatalLogger
- type InternalLogger
- func (l *InternalLogger) Debug(args ...interface{})
- func (l *InternalLogger) Debugf(format string, args ...interface{})
- func (l *InternalLogger) Error(args ...interface{})
- func (l *InternalLogger) Errorf(format string, args ...interface{})
- func (l *InternalLogger) Fatalf(format string, args ...interface{})
- func (l *InternalLogger) ForkWithFields(ctx context.Context, fields map[string]interface{}) *InternalLogger
- func (l *InternalLogger) Info(args ...interface{})
- func (l *InternalLogger) Infof(format string, args ...interface{})
- func (l *InternalLogger) Warning(args ...interface{})
- func (l *InternalLogger) Warningf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FatalLogger ¶
type FatalLogger interface {
Fatalf(format string, args ...interface{})
}
type InternalLogger ¶
type InternalLogger struct {
// contains filtered or unexported fields
}
InternalLogger is separating our codebase from logging implementation
func CreateK8sContextualLogger ¶
func CreateK8sContextualLogger(ctx context.Context, mainLogger *InternalLogger, req ctrl.Request) *InternalLogger
CreateK8sContextualLogger creates a logger instance with a Kubernetes controller's reconciliation request context
func CreateLogger ¶
func CreateLogger(isDebugLevel bool) *InternalLogger
CreateLogger is creating a global logger instance
func NewInternalLogger ¶
func NewInternalLogger() *InternalLogger
func (*InternalLogger) Debug ¶
func (l *InternalLogger) Debug(args ...interface{})
func (*InternalLogger) Debugf ¶
func (l *InternalLogger) Debugf(format string, args ...interface{})
func (*InternalLogger) Error ¶
func (l *InternalLogger) Error(args ...interface{})
func (*InternalLogger) Errorf ¶
func (l *InternalLogger) Errorf(format string, args ...interface{})
func (*InternalLogger) Fatalf ¶
func (l *InternalLogger) Fatalf(format string, args ...interface{})
func (*InternalLogger) ForkWithFields ¶
func (l *InternalLogger) ForkWithFields(ctx context.Context, fields map[string]interface{}) *InternalLogger
func (*InternalLogger) Info ¶
func (l *InternalLogger) Info(args ...interface{})
func (*InternalLogger) Infof ¶
func (l *InternalLogger) Infof(format string, args ...interface{})
func (*InternalLogger) Warning ¶
func (l *InternalLogger) Warning(args ...interface{})
func (*InternalLogger) Warningf ¶
func (l *InternalLogger) Warningf(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.