Question
Luxoft
UA
Last activity: 11 Jul 2017 9:38 EDT
logger com.pega.apache.http.wire
Hi, Guys
Recently we have update pega from 7.1.9 to 7.2.2. And I see that logger com.pega.apache.http.wire is not supported any more. Which logger can i use now instead of that
***Updated by moderator: Lochan to update Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi Sergi,
I had cross checked the existence of logger com.pega.apache.http.wire in Pega v7.2.2 and it is available in the application as shown in attachment.
Regards
Mahesh
Luxoft
UA
Mahesh,
yes, I set this logger to level All but dont see anything in gos from this logger, could you try from yourself?
Virtusa IT Consulting
AE
What you are trying to trace from the logs?
Luxoft
UA
Hi, Habeeb,
I trace REST connectors invocation. Headers, request and response messages
Pegasystems Inc.
US
With 7.2.2, we updated the REST Connector to use a current version of the Apache httpcomponents jars. Thus, com.pega.apache.http.wire is no longer available. With 7.3, and the log4j2 update, the regular Apache wire logs become available (org.apache.http.wire). Unfortunately, for 7.2.2 the actual wire contents are no longer logged by the RESTConnector debug log, only headers. Request and response headers are sufficient for most debugging tasks.
If request/response bodies are absolutely needed, turning on debug logging for ServiceMappingUtils logs the mapped values for both request and response values.
Finally, there is a hot fix available for 7.2.2 that adds the request and response bodies to the RESTConnector debug logs.
For Pega 7.3 and higher, we suggest using org.apache.http.wire to log request and response bodies.
Greenfield
DE
Hi Charles,
thanks for this info. I'm actually trying to debug regular http traffic and you say "For Pega 7.3 and higher, we suggest using org.apache.http.wire to log request and response bodies."
What can I use for Pega 7.2.2? I don't find com.pega.apache.http.wire or org.apache.http.wire
Thanks and regards,
Gordian
Pegasystems Inc.
US
I think httpclient.wire.content should get what you're looking for.
-
Maciek Surdziel Shaik Abdul Ahad