diag

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: AGPL-3.0, AGPL-3.0-only Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(verbose bool, format string, args ...any)

Debug writes a verbose trace to stderr when enabled. Use for exec traces, internal state, fallback reasoning. Gate calls with Verbose() so traces stay out of normal structured output: Debug(Verbose(), ...).

func Error added in v0.5.0

func Error(format string, args ...any)

Error writes an error diagnostic to stderr. Use for hard module failures where configured contract could not be fulfilled.

func Info

func Info(format string, args ...any)

Info writes an informational diagnostic to stderr. Use for notable fallback paths that succeeded but via a secondary method.

func Verbose added in v0.7.0

func Verbose() bool

Verbose reports whether debug tracing is enabled, via the SF_DEBUG env var (any non-empty value). It is the single toggle for Debug() calls so internal traces are silent in normal runs and appear only when debugging.

func Warn

func Warn(format string, args ...any)

Warn writes a warning diagnostic to stderr. Use for non-fatal degradation the user should know about.

Types

This section is empty.

Jump to

Keyboard shortcuts

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