Commit 2438fb9
[Java] Adding a custom log (#411)
*Issue description:*
We need a reliable way to validate SigV4 logs across different language
implementations (Python, JavaScript, .NET, Java) for our sample
applications. The current logging doesn't provide a consistent, easily
identifiable log entry for this purpose. This PR adds a standardized
SigV4 logging mechanism to the Java sample application, similar to what
was implemented for Python in [[PR
#406]](#406).
*Description of changes:*
Added a custom WARNING log in the aws_sdk_call function of the Python
sample application. This custom log will be present in the log-group and
can be used to filter logs from those created while running the sample
application. This change provides a consistent log entry that can be
replicated across other language implementations for uniform SigV4 log
validation.
*Rollback procedure:*
1. Remove the line `logger.warn("This is a custom log for validation
testing");` from the aws_sdk_call function in views.py.
2. Commit and push the change.
3. Redeploy the application.
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Co-authored-by: Jeel Mehta <jeelmm@amazon.com>1 parent 6970b89 commit 2438fb9
File tree
1 file changed
+1
-0
lines changed- sample-apps/java/springboot-main-service/src/main/java/com/amazon/sampleapp
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
0 commit comments