Skip to content

Commit

Permalink
Merge pull request #1443 from CMSgov/feature/QPPSE-312-Add_Additional…
Browse files Browse the repository at this point in the history
…_Logging

QPPSE-312: Added spring boot http logging
  • Loading branch information
sivaksb authored Jul 2, 2024
2 parents 8ee5c7d + 4df0b37 commit 5ccb815
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package gov.cms.qpp.conversion.api.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.filter.CommonsRequestLoggingFilter;

@Configuration
public class RequestLoggingFilterConfig {
@Bean
public CommonsRequestLoggingFilter requestLoggingFilter() {
CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();
loggingFilter.setIncludeQueryString(true);
loggingFilter.setIncludeHeaders(true);
return loggingFilter;
}
}
3 changes: 3 additions & 0 deletions rest-api/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@
<root level="INFO">
<appender-ref ref="STDOUT_DETAIL"/>
</root>
<logger name="org.springframework.web.filter.CommonsRequestLoggingFilter">
<level value="DEBUG" />
</logger>
</configuration>

0 comments on commit 5ccb815

Please sign in to comment.