I developed a Spring Boot (2.3.3) application which stores its data in DynamoDB.
I used the following packages to CRUD my data:
All works well, but I want to enable logging of requests my app makes to DynamoDB to be able to optimize it (use proper index, etc.).
I tried to configure log4j using this AWS SDK docs. But I still don't see any AWS SDK related lines in my app console output.
Please, help!
For logging AWS dynamodb i use log4j and add following property in log4j.xml
<Logger name="org.apache.http.wire" level="trace"/>
This will print all calls which make to dynamodb server.
ref:- https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/logging-slf4j.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With