daemonlog

package
v0.1.18-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureDefault

func ConfigureDefault(stdout, stderr io.Writer, level slog.Leveler, identity Identity)

ConfigureDefault installs the daemon JSON logger as the global slog and log logger.

func NewHandler

func NewHandler(stdout, stderr io.Writer, opts *slog.HandlerOptions, identity Identity) slog.Handler

NewHandler returns a slog handler that writes daemon JSON lines to stdout/stderr.

Types

type Identity

type Identity struct {
	Env    string
	System string
	Inst   string
}

Identity is the fixed daemon log envelope identity.

func FromEnv

func FromEnv() Identity

FromEnv returns the daemon log identity, allowing deployment-specific overrides.

Jump to

Keyboard shortcuts

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