log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsPathOrExit

func AbsPathOrExit(relativePath, identifier string) string

func CloseLogFile

func CloseLogFile() error

CloseLogFile closes the log file if it's open. This should be called when the application is shutting down.

func DisplayInteractiveProgress

func DisplayInteractiveProgress(rd io.Reader)

func OpenLogFile

func OpenLogFile() (*os.File, string, error)

OpenLogFile creates and returns a file for logging at the specified path. It creates the directory structure if it doesn't exist. The file handle is stored in a global variable and can be closed with CloseLogFile().

func SetUpLogs

func SetUpLogs(out io.Writer, level string) error

SetUpLogs configures logging with the specified output and level. 'out' is typically the log file writer. Logs will go to both the console and 'out'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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