Documentation
¶
Overview ¶
Package logx builds the gateway logger and defines the level policy used in the code.
Level policy:
DEBUG details useful while diagnosing (CLI arguments, timings of internal steps)
INFO normal lifecycle events (startup, run started/finished, workspace changes)
WARN the request or environment is wrong but the gateway is fine
(auth failure, rejected IP, busy session, insecure setting)
ERROR an operation failed because of the gateway or the agent CLI
CRITICAL the gateway cannot keep serving (listener failure, broken startup)
Prompts, answers and credentials are never logged outside the opt-in body log.
Index ¶
Constants ¶
const ( FormatJSON = "json" FormatText = "text" // FormatConsole is colored, human-oriented output for an interactive terminal. FormatConsole = "console" )
Log formats (NATIVE_AGENT_LOG_FORMAT).
const LevelCritical = slog.Level(12)
LevelCritical is above slog.LevelError; it is rendered as "CRITICAL".
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.