logging

package
v0.0.0-...-8310f90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL