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 (*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.
Click to show internal directories.
Click to hide internal directories.