Documentation
¶
Overview ¶
Package logger provides a standardized structured logger for the IPAM backend. Logs to stdout with consistent keys and message formats.
Index ¶
Constants ¶
View Source
const ( KeyPath = "path" KeyMethod = "method" KeyStatus = "status" KeyDuration = "duration_ms" KeyError = "error" KeyUserID = "user_id" KeyEmail = "email" KeyOperation = "operation" KeySetupRequired = "setup_required" )
Standard keys for structured logs (consistent across the backend).
View Source
const ( MsgSetupStatusFailed = "setup status check failed" MsgSetupAlreadyDone = "setup already completed" MsgSetupMissingCreds = "email and password required" MsgSetupPasswordFailed = "password setup failed" MsgSetupCreateUserFailed = "failed to create user" MsgAuthMissingCreds = "email and password required" MsgAuthInvalidCreds = "invalid email or password" MsgAuthPasswordMismatch = "password mismatch" MsgStoreError = "store error" )
Standard error messages (consistent, non-PII where possible).
Variables ¶
View Source
var Log *slog.Logger
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.