logger

package
v0.0.0-...-23030c4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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 kieapp application with levels

func FromContext

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