Documentation
¶
Overview ¶
Package logging provides structured, leveled logging for the JumpGate daemon using Go's standard library log/slog package. It supports JSON and text formats, configurable log levels, and consistent attribute naming across all modules.
Index ¶
Constants ¶
View Source
const ( LevelDebug = "debug" LevelInfo = "info" LevelWarn = "warn" LevelError = "error" )
Level constants mirror slog levels for external configuration.
View Source
const ( // Module identifies the subsystem (e.g., "webhook", "deploy", "docker"). AttrModule = "module" // App-level attributes. AttrAppName = "app_name" AttrDeploymentID = "deployment_id" AttrCommitHash = "commit_hash" AttrRepoURL = "repo_url" AttrContainerID = "container_id" AttrStatus = "status" // Network attributes. AttrClientIP = "client_ip" AttrPort = "port" // Error attribute. AttrError = "error" )
Common attribute keys used across all modules to ensure consistency.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.