Documentation
¶
Index ¶
- type TracingLogger
- func (t TracingLogger) Enabled(level int) bool
- func (t TracingLogger) Error(err error, msg string, keysAndValues ...interface{})
- func (t TracingLogger) Info(level int, msg string, keysAndValues ...interface{})
- func (t TracingLogger) Init(info logr.RuntimeInfo)
- func (t TracingLogger) V(level int) logr.LogSink
- func (t TracingLogger) WithName(name string) logr.LogSink
- func (t TracingLogger) WithValues(keysAndValues ...interface{}) logr.LogSink
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) Enabled ¶
func (t TracingLogger) Enabled(level int) bool
Enabled implements the Logger interface.
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(level int, msg string, keysAndValues ...interface{})
Info implements the Logger interface.
func (TracingLogger) Init ¶
func (t TracingLogger) Init(info logr.RuntimeInfo)
Init calls sink's Init.
func (TracingLogger) V ¶
func (t TracingLogger) V(level int) logr.LogSink
V implements the Logger interface.
func (TracingLogger) WithName ¶
func (t TracingLogger) WithName(name string) logr.LogSink
WithName implements the Logger interface.
func (TracingLogger) WithValues ¶
func (t TracingLogger) WithValues(keysAndValues ...interface{}) logr.LogSink
WithValues implements the Logger interface.
Click to show internal directories.
Click to hide internal directories.