Documentation
¶
Overview ¶
Package logger provides logging configuration and access for the CLI.
This package wraps logrus to provide consistent logging across the CLI. It supports configurable log levels and JSON output format for machine parsing.
Setup ¶
Call Setup early in the application lifecycle:
logger.Setup("debug", false) // debug level, text format
logger.Setup("info", true) // info level, JSON format
Usage ¶
log := logger.GetLogger()
log.Debug("detailed information")
log.Info("general information")
log.Error("error occurred")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogger ¶
GetLogger returns the global logger instance. The logger should be configured via Setup before use. This returns the logrus standard logger which can be used for Debug, Info, Warn, Error, Fatal, and Panic level logging.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.