log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package log provides a tiny opt-in debug logger for ACP relay code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf logs a debug message when enabled. Output goes through the standard library log package and is prefixed with "[dbg] ".

func Enabled

func Enabled() bool

Enabled reports whether debug logging is enabled.

func Logf

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

Logf is an alias for Debugf kept for painless migration from existing relays.

func Register

func Register(envVar string) bool

Register enables debug logging when envVar is set to a truthy value. It returns the resulting enabled state. Empty envVar is ignored.

func SetEnabled

func SetEnabled(on bool)

SetEnabled forces debug logging on or off.

Types

This section is empty.

Jump to

Keyboard shortcuts

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