noop

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogProvider

type LogProvider struct{}

func NewLogProvider

func NewLogProvider() *LogProvider

func (*LogProvider) Logger

func (p *LogProvider) Logger() log.Logger

func (*LogProvider) Shutdown

func (p *LogProvider) Shutdown(_ context.Context) error

type Logger

type Logger struct{}

func NewLogger

func NewLogger() *Logger

func (*Logger) Attrs

func (l *Logger) Attrs() []log.Attr

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, msg string, attrs ...log.Attr)

func (*Logger) Enabled

func (l *Logger) Enabled(level log.Level) bool

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, msg string, attrs ...log.Attr)

func (*Logger) Fatal

func (l *Logger) Fatal(ctx context.Context, msg string, attrs ...log.Attr)

func (*Logger) For

func (l *Logger) For(ctx context.Context) log.Logger

func (*Logger) ForSpan

func (l *Logger) ForSpan(span trace.Span) log.Logger

func (*Logger) Handler

func (l *Logger) Handler() log.Handler

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, msg string, attrs ...log.Attr)

func (*Logger) LogAttrs

func (l *Logger) LogAttrs(ctx context.Context, level log.Level, msg string, attrs ...log.Attr)

func (*Logger) Named

func (l *Logger) Named(name string) log.Logger

func (*Logger) NewContext

func (l *Logger) NewContext(ctx context.Context) context.Context

func (*Logger) Panic

func (l *Logger) Panic(ctx context.Context, msg string, attrs ...log.Attr)

func (*Logger) Span

func (l *Logger) Span() trace.Span

func (*Logger) Warn

func (l *Logger) Warn(ctx context.Context, msg string, attrs ...log.Attr)

func (*Logger) With

func (l *Logger) With(attrs ...log.Attr) log.Logger

Jump to

Keyboard shortcuts

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