-
I would like to know if there is a best practice to log status code and message, request and response body of Apex REST callout with Nebula Logger. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @GUERRIEROI - currently, there's nothing built into Nebula Logger specifically for logging callout requests & responses, but that sounds like a really great enhancement. I've added issue #240 to look into adding support for logging Any chance you could share some code that demonstrates your current approach for your custom formatted message? That would help give me some more context for how to possibly improve this area in the future. |
Beta Was this translation helpful? Give feedback.
Hi @GUERRIEROI - currently, there's nothing built into Nebula Logger specifically for logging callout requests & responses, but that sounds like a really great enhancement. I've added issue #240 to look into adding support for logging
HttpRequest
andHttpResponse
objects.Any chance you could share some code that demonstrates your current approach for your custom formatted message? That would help give me some more context for how to possibly improve this area in the future.