log

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

Debug logs a debug message if debug mode is enabled

func Disable

func Disable()

Disable turns off debug logging

func Enable

func Enable()

Enable turns on debug logging

func EndTimer

func EndTimer(operation string)

EndTimer ends timing an operation and logs the duration

func Error

func Error(format string, v ...interface{})

Error logs an error message (always shown)

func Fatal

func Fatal(format string, v ...interface{})

Fatal logs an error message and exits

func GetPhaseStart

func GetPhaseStart() time.Time

GetPhaseStart returns the current phase start time

func Info

func Info(format string, v ...interface{})

Info logs an info message if debug mode is enabled and not in quiet mode

func IsDebugEnabled added in v0.2.3

func IsDebugEnabled() bool

IsDebugEnabled returns whether debug mode is enabled

func IsQuietMode added in v0.3.0

func IsQuietMode() bool

IsQuietMode returns whether quiet mode is enabled

func Output added in v0.3.0

func Output(format string, v ...interface{})

Output logs regular output (suppressed in quiet mode)

func Phase

func Phase(name string)

Phase starts a new logging phase with a header

func SetColorEnabled

func SetColorEnabled(enabled bool)

SetColorEnabled enables or disables color output

func SetQuiet added in v0.3.0

func SetQuiet(enabled bool)

SetQuiet enables or disables quiet mode

func StartTimer

func StartTimer(operation string)

StartTimer starts timing an operation

func Warn added in v0.3.0

func Warn(format string, v ...interface{})

Warn logs a warning message (always shown unless in quiet mode)

Types

This section is empty.

Jump to

Keyboard shortcuts

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