logging

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(logFilePath, levelStr, formatStr string, redactor Redactor) (*os.File, error)

Init configures the global slog logger and standard log redirection. It returns the log *os.File pointer (or nil if discarding), and any error during file opening.

Types

type NoopRedactor

type NoopRedactor struct{}

NoopRedactor is a stub that returns the attribute unchanged. It will be replaced by the actual secrets redactor in Phase 2.

func (*NoopRedactor) Redact

func (r *NoopRedactor) Redact(attr slog.Attr) slog.Attr

type Redactor

type Redactor interface {
	Redact(attr slog.Attr) slog.Attr
}

Redactor defines the interface for sanitizing log attributes before they are written to the sink.

Jump to

Keyboard shortcuts

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