Documentation
¶
Index ¶
- func GetLogger(name string) zerolog.Logger
- func LogCommand(cmd string, args []string)
- func LogDuration(start time.Time, operation string)
- func LogOperationStart(logger zerolog.Logger, operation string) func()
- func Must(err error, msg string)
- func SetupLogger(verbosity int)
- func WithFields(fields map[string]interface{}) zerolog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogCommand ¶
LogCommand logs a command execution with its arguments
func LogDuration ¶
LogDuration logs the duration of an operation
func LogOperationStart ¶
LogOperationStart logs the start of an operation and returns a function to log its completion
func SetupLogger ¶
func SetupLogger(verbosity int)
SetupLogger configures the global logger based on verbosity level It sets up dual output to both console and a log file
func WithFields ¶
WithFields returns a logger with additional fields
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.