---
title: "Discussion on \"APEX AI Agent Logging with Request & Response Handlers\" | Hashnode"
description: "Discussion on \"APEX AI Agent Logging with Request & Response Handlers\". Log APEX AI Agent requests, responses, tool calls, tool results, token usage, and runtime metadata with handlers."
url: "https://hashnode.com/posts/apex-ai-agent-logging-with-request-response-handlers/6a3d23e15b0654c803956c69"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [APEX AI Agent Logging with Request & Response Handlers](https://blog.cloudnueva.com/apex-ai-agent-logging-with-request-response-handlers?utm_source=hashnode&utm_medium=feed)

Log APEX AI Agent requests, responses, tool calls, tool results, token usage, and runtime metadata with handlers.

Jun 25 · 11 min read · blog.cloudnueva.com  
Read the article

-   [#orclapex](https://hashnode.com/tag/orclapex)
-   [#aiagents](https://hashnode.com/tag/aiagents)

## Written by

[Jon Dixon](https://hashnode.com/@orclapex)

@orclapex · San Diego, CA

  
[View profile](https://hashnode.com/@orclapex)

APEX, ORDS & the Oracle Database

I’m Jon Dixon, an Oracle APEX developer and consultant at Cloud Nueva. I write about APEX, ORDS, the Oracle Database, and how AI is changing the way we build software. This blog is where I share practical examples, lessons learned, and ideas from my work.

## Responses 2

Markdown supported · ⌘↵ to post

[Julian Neagu](https://hashnode.com/@julianneagulab)

[Jun 29](https://hashnode.com/posts/apex-ai-agent-logging-with-request-response-handlers/6a3d23e15b0654c803956c69/comment/6a4258d53ad1d3840a305b19)

this is the part people usually ignore until debugging gets painful in prod

[Kinjan Bhavsar](https://hashnode.com/@kinjanbhavsar11)

[Jul 7](https://hashnode.com/posts/apex-ai-agent-logging-with-request-response-handlers/6a3d23e15b0654c803956c69/comment/6a4cb3ec22f585e27c048ced)

Thanks for this article. It helped me a lot.

But, I have a query, when I use APEX\_AI.GENERATE on button click, this works well but can I pass a custom param in that case for logging my internal tool call because in case of APEX\_AI.GENERATE, it doesn't add any tool or doesn't pass any extra custom param.
