log

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(cfg *config.Config)

func InitializeTracer

func InitializeTracer(appCtx context.Context, cfg *config.Config) trace.Tracer

Types

type SlogLogger added in v1.8.0

type SlogLogger struct {
	embedded.Logger
	// contains filtered or unexported fields
}

SlogLogger is an OpenTelemetry Logger

func (SlogLogger) Emit added in v1.8.0

func (s SlogLogger) Emit(ctx context.Context, record otellog.Record)

func (SlogLogger) Enabled added in v1.8.0

type SlogProvider added in v1.8.0

type SlogProvider struct {
	embedded.LoggerProvider
	// contains filtered or unexported fields
}

func (SlogProvider) Logger added in v1.8.0

func (s SlogProvider) Logger(name string, options ...otellog.LoggerOption) otellog.Logger

Jump to

Keyboard shortcuts

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