logger

package module
v0.0.0-...-5c85db0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TracerLogger

type TracerLogger struct {
	trace.Span
	trace.Tracer
}

func NewLoggerWithTraceID

func NewLoggerWithTraceID(ctx context.Context, componentName, spanName string) *TracerLogger

func (*TracerLogger) Close

func (t *TracerLogger) Close()

Close closes the span

func (*TracerLogger) Debug

func (t *TracerLogger) Debug(sender, format string, v ...any)

func (*TracerLogger) DebugWithAttributes

func (t *TracerLogger) DebugWithAttributes(sender string, attributes []attribute.KeyValue, format string, v ...any)

func (*TracerLogger) Error

func (t *TracerLogger) Error(sender, format string, v ...any)

func (*TracerLogger) ErrorWithAttributes

func (t *TracerLogger) ErrorWithAttributes(sender string, attributes []attribute.KeyValue, format string, v ...any)

func (*TracerLogger) Info

func (t *TracerLogger) Info(sender, format string, v ...any)

func (*TracerLogger) InfoWithAttributes

func (t *TracerLogger) InfoWithAttributes(sender string, attributes []attribute.KeyValue, format string, v ...any)

func (*TracerLogger) Warn

func (t *TracerLogger) Warn(sender, format string, v ...any)

func (*TracerLogger) WarnWithAttributes

func (t *TracerLogger) WarnWithAttributes(sender string, attributes []attribute.KeyValue, format string, v ...any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL