diagnostic

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnabledFromEnv

func EnabledFromEnv() bool

EnabledFromEnv reports whether diagnostic output was requested by env.

func Redact

func Redact(input string) string

Redact removes credential-shaped values before diagnostics reach stderr.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger writes human diagnostics only when verbose output is enabled.

func New

func New(out io.Writer, enabled bool) Logger

func (Logger) Enabled

func (l Logger) Enabled() bool

func (Logger) Printf

func (l Logger) Printf(format string, args ...any)

Jump to

Keyboard shortcuts

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