logger

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 2 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 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