Documentation
¶
Overview ¶
Package logger provides structured logging for the Prism daemon with proper log levels.
Log levels and their destinations:
- DEBUG: Detailed diagnostic information → stdout
- INFO: Normal operation messages → stdout
- WARN: Warning conditions → stderr
- ERROR: Error conditions → stderr
Usage:
logger.Info("Server starting", "port", 8947)
logger.Debug("Processing request", "method", "GET", "path", "/api/v1/instances")
logger.Warn("Rate limit approaching", "current", 95, "max", 100)
logger.Error("Failed to connect", "error", err)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(level LogLevel)
Initialize sets up the logging infrastructure This should be called once at daemon startup
Types ¶
Click to show internal directories.
Click to hide internal directories.