log

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log provides simple structured logging with verbosity levels. Debug messages are only shown when Verbose is true. All other messages always print to stderr.

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

Verbose controls whether Debug messages are printed. Set this via the root command's --verbose flag.

Functions

func Debug

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

Debug prints a debug message to stderr if Verbose is true. Format follows fmt.Printf conventions.

func Error

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

Error prints an error message to stderr. Format follows fmt.Printf conventions.

func Info

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

Info prints an informational message to stderr. Format follows fmt.Printf conventions.

func Warn

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

Warn prints a warning message to stderr. Format follows fmt.Printf conventions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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