verbose

package
v0.0.0-...-a4ce6f4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package verbose provides a shared debug logger that writes to a timestamped log file when --verbose is enabled. All output is also echoed to stderr.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled() bool

IsEnabled returns true if verbose mode is active.

Types

type Logger

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

Logger writes verbose debug output to a file and optionally to stderr.

func Get

func Get() *Logger

Get returns the global logger (may be nil).

func Init

func Init() (*Logger, error)

Init creates the log file and enables verbose logging. Call once at startup when --verbose is set.

func (*Logger) Close

func (l *Logger) Close()

Close flushes and closes the log file.

func (*Logger) Log

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

Log writes a formatted message to the log file and stderr.

Jump to

Keyboard shortcuts

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