slog

package
v0.19.921 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsSystemProvider

func AsSystemProvider(f any) any

func NewOTELProvider

func NewOTELProvider(cfg *internal.Config, set *settings.Settings, logStreamID string) (*log.LoggerProvider, error)

func NewSystemProvider

func NewSystemProvider(params SystemParams) (*log.LoggerProvider, error)

NewSystemProvider returns the process log stream provider if available, falling back to stdout.

Types

type SystemParams

type SystemParams struct {
	fx.In

	// ProcessLogProvider is the OTEL log provider from the process log stream.
	// When available, system logs are sent to the process log stream.
	// When nil, falls back to stdout.
	ProcessLogProvider *log.LoggerProvider `name:"process-log-provider" optional:"true"`
}

Jump to

Keyboard shortcuts

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