Documentation
¶
Overview ¶
Package logging centralizes slog setup + a Fatal helper for standalone Go agents that depend on agent-kit-go, so every agent emits the same structured log shape without each one wiring its own handler.
Usage in an agent's main:
func main() {
logger := logging.Setup(os.Getenv("LOG_LEVEL"))
logger.Info("agent starting", "node", cfg.NodeName)
...
if err := boot(); err != nil {
logging.Fatal("boot failed", "error", err)
}
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.