logger

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close flushes and closes the log file if it was opened

func Error

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

Error logs an error message

func Info

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

Info logs an info message

func Init

func Init(verbose bool) error

Init initializes the logger. If verbose is false, uses io.Discard (zero overhead). If verbose is true, opens ~/.cache/gemtracker/gemtracker.log for appending. Returns error if log file cannot be opened.

func Warn

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

Warn logs a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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