Reputation: 1051
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!
Upvotes: 4
Views: 2332
Reputation: 302
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
Upvotes: 3