Adding Logs to the Agent › Glossary
AI Agent HandbookAll chapters Adding Logs to the Agent › GlossaryOne section · Sections in this chapter9 / 10 ↓
Log Level: A category that indicates the importance or severity of a log message (DEBUG, INFO, WARNING, ERROR). Log levels let you filter messages to see only the detail you need.
Logging: The practice of recording what happens during program execution. For agents, logging captures decisions, tool calls, and reasoning steps to make the agent's behavior observable.
Structured Logging: A logging approach that uses consistent formats and includes contextual information like timestamps and request IDs. Unlike simple print statements, structured logs support field-based filtering and aggregation.
Redaction: The process of removing or masking sensitive information before logging it. Redaction prevents passwords, API keys, or personal data from appearing in log files.