Documentation ¶
Index ¶
- type TracingLogger
- func (t TracingLogger) Error(err error, msg string, keysAndValues ...interface{})
- func (t TracingLogger) Info(msg string, keysAndValues ...interface{})
- func (t TracingLogger) V(level int) logr.Logger
- func (t TracingLogger) WithName(name string) logr.Logger
- func (t TracingLogger) WithValues(keysAndValues ...interface{}) logr.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TracingLogger ¶
TracingLogger is a logger with tracing support. It captures all the logs and adds them into a tracing span.
func NewLogger ¶
func NewLogger(logger logr.Logger, span trace.Span) *TracingLogger
NewLogger creates and returns a TracingLogger.
func (TracingLogger) Error ¶
func (t TracingLogger) Error(err error, msg string, keysAndValues ...interface{})
Error implements the Logger interface.
func (TracingLogger) Info ¶
func (t TracingLogger) Info(msg string, keysAndValues ...interface{})
Info implements the Logger interface.
func (TracingLogger) V ¶
func (t TracingLogger) V(level int) logr.Logger
V implements the Logger interface.
func (TracingLogger) WithName ¶
func (t TracingLogger) WithName(name string) logr.Logger
WithName implements the Logger interface.
func (TracingLogger) WithValues ¶
func (t TracingLogger) WithValues(keysAndValues ...interface{}) logr.Logger
WithValues implements the Logger interface.
Click to show internal directories.
Click to hide internal directories.