Documentation
¶
Index ¶
- func Debug(ctx context.Context, msg string, v ...interface{})
- func Error(ctx context.Context, err error, msg string, v ...interface{})
- func ExtractLogger(ctx context.Context) logr.Logger
- func Info(ctx context.Context, msg string, v ...interface{})
- func NewContext(ctx context.Context, name string) context.Context
- func NewLogger(name string) logr.Logger
- func NewParentContext(log logr.Logger) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractLogger ¶
ExtractLogger returns a logger based on the loggerKey This function retrieves from an existing context the value, which in this case is an instance of our logger
func NewContext ¶
NewContext returns a new child context based on our logger key(loggerKey). This function is useful for spawning children context with a particular logging name for each controller
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.