Adding Logs to the Agent › Glossary

Michael BrenndoerferAugust 6, 20251 min read
AI Agent HandbookAll chapters
Part 12 of 15Observability and Debugging - Peering Inside the Agent
Chapter 33Adding Logs to the Agent › Glossary
Reading section 9 of 10 · Glossary · 1 minSection 9 of 10 · 1 min

Book contents

Section 9 of 10 · 1 min read

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.