debug

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScrubURL

func ScrubURL(raw string) string

ScrubURL removes sensitive query parameters (key) from a URL string.

Types

type Logger

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

Logger writes debug messages to a writer. A nil Logger is safe to use and silently discards all output.

func New

func New(w io.Writer) *Logger

New creates a Logger that writes to w. If w is nil the logger is a no-op.

func (*Logger) Enabled

func (l *Logger) Enabled() bool

Enabled reports whether debug output is active.

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...interface{})

Printf writes a formatted debug message followed by a newline.

Jump to

Keyboard shortcuts

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