ExpediaGroup / rapid-java-sdk

ExpediaGroup - Rapid Java SDK Home
https://opensource.expediagroup.com/rapid-java-sdk/
Apache License 2.0
3 stars 1 forks source link

Feature request debug/trace logging that logs the raw JSON responses #208

Open tucker-eventpipe opened 3 weeks ago

tucker-eventpipe commented 3 weeks ago

For certification, it would be nice to be able to turn on or up logging for the API responses and have that be a documented feature in this repository. Having that logging dump the raw JSON responses would be preferable, as they are easier to format and read. If implemented it might be a good idea to put these logs at the TRACE level, so if you wanted to run the logs at the DEBUG level and not see them you could, or turn the logs up to TRACE and see the full responses of the API.

tucker-eventpipe commented 3 weeks ago

After submitting this I thought that this could be possible through configuration. I'm just not as familiar with Kotlin as I am with Java and Groovy. If this is possible through configuration, adding documentation on what to add to a logback or log4j configuration would be helpful.