logging

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts Options) (*slog.Logger, error)

New builds a *slog.Logger that writes human-readable output to stderr and, if AuditLog is set, appends a parallel JSON Lines stream to that file.

Types

type Options

type Options struct {
	Level    string
	AuditLog string
	Stderr   io.Writer
}

Jump to

Keyboard shortcuts

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