Help us shape the future of Go! Take the 2026 Go Developer Survey

log

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, keysAndValues ...any)

Debug --.

func Debugf

func Debugf(format string, args ...any)

Debugf --.

func Error

func Error(err error, msg string, keysAndValues ...any)

Error --.

func Errorf

func Errorf(err error, format string, args ...any)

Errorf --.

func Info

func Info(msg string, keysAndValues ...any)

Info --.

func Infof

func Infof(format string, args ...any)

Infof --.

func InitForCmd added in v2.2.0

func InitForCmd()

InitForCmd is required to avoid nil pointer exceptions from command line.

Types

type Injectable

type Injectable interface {
	InjectLogger(logger Logger)
}

Injectable identifies objects that can receive a Logger.

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger --.

var Log Logger

Log --.

func ForIntegration

func ForIntegration(target *v1.Integration) Logger

ForIntegration --.

func ForIntegrationKit

func ForIntegrationKit(target *v1.IntegrationKit) Logger

ForIntegrationKit --.

func WithName

func WithName(name string) Logger

WithName --.

func WithValues

func WithValues(keysAndValues ...any) Logger

WithValues --.

func (Logger) AsLogger

func (l Logger) AsLogger() logr.Logger

AsLogger --.

func (Logger) Debug

func (l Logger) Debug(msg string, keysAndValues ...any)

Debug --.

func (Logger) Debugf

func (l Logger) Debugf(format string, args ...any)

Debugf --.

func (Logger) Error

func (l Logger) Error(err error, msg string, keysAndValues ...any)

Error --.

func (Logger) Errorf

func (l Logger) Errorf(err error, format string, args ...any)

Errorf --.

func (Logger) ForBuild

func (l Logger) ForBuild(target *v1.Build) Logger

ForBuild --.

func (Logger) ForCatalog

func (l Logger) ForCatalog(target *v1.CamelCatalog) Logger

ForCatalog --.

func (Logger) ForIntegration

func (l Logger) ForIntegration(target *v1.Integration) Logger

ForIntegration --.

func (Logger) ForIntegrationKit

func (l Logger) ForIntegrationKit(target *v1.IntegrationKit) Logger

ForIntegrationKit --.

func (Logger) ForIntegrationPlatform

func (l Logger) ForIntegrationPlatform(target *v1.IntegrationPlatform) Logger

ForIntegrationPlatform --.

func (Logger) ForIntegrationProfile added in v2.3.0

func (l Logger) ForIntegrationProfile(target *v1.IntegrationProfile) Logger

ForIntegrationProfile --.

func (Logger) ForKamelet

func (l Logger) ForKamelet(target *v1.Kamelet) Logger

ForKamelet --.

func (Logger) ForPipe

func (l Logger) ForPipe(target *v1.Pipe) Logger

ForPipe --.

func (Logger) Info

func (l Logger) Info(msg string, keysAndValues ...any)

Info --.

func (Logger) Infof

func (l Logger) Infof(format string, args ...any)

Infof --.

func (Logger) WithName

func (l Logger) WithName(name string) Logger

WithName --.

func (Logger) WithValues

func (l Logger) WithValues(keysAndValues ...any) Logger

WithValues --.

Jump to

Keyboard shortcuts

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