logger

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package logger provides verbose logging for the Sercha CLI. When verbose mode is enabled via the --verbose flag, debug messages are printed to stderr to help users understand the search pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug prints a message if verbose mode is enabled.

func Info

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

Info prints an informational message if verbose mode is enabled.

func IsVerbose

func IsVerbose() bool

IsVerbose returns true if verbose mode is enabled.

func Section

func Section(name string)

Section prints a section header if verbose mode is enabled.

func SetOutput

func SetOutput(w io.Writer)

SetOutput sets the output writer for verbose logs. Defaults to os.Stderr. Useful for testing.

func SetVerbose

func SetVerbose(v bool)

SetVerbose enables or disables verbose logging.

func Warn

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

Warn prints a warning message if verbose mode is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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