logger

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	logr.Logger
}

Logger custom logger to define logs in kogito application with levels

func FromContext added in v1.12.0

func FromContext(ctx context.Context) Logger

FromContext returns a logger with predefined values from a context.Context.

func GetLogger

func GetLogger(name string) Logger

GetLogger returns a custom named logger

func (*Logger) Debug

func (l *Logger) Debug(message string, keysAndValues ...interface{})

Debug alternative for info format with DEBUG named and correct log level

func (*Logger) Warn

func (l *Logger) Warn(message string, keysAndValues ...interface{})

Warn alternative for info format with sprintf and WARN named.

func (*Logger) WithValues

func (l *Logger) WithValues(keysAndValues ...interface{}) Logger

WithValues adds some key-value pairs of context to a logger.

Jump to

Keyboard shortcuts

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