-
-
Save b1a9id/6aa0510c342752d8aa9fa37f3cd7f33c to your computer and use it in GitHub Desktop.
CommonsRequestLoggingFilterを使ったログ出力
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration(proxyBeanMethods = false) | |
public class RequestLoggingFilterConfig { | |
@Bean | |
public CommonsRequestLoggingFilter logFilter() { | |
CommonsRequestLoggingFilter filter = new CommonsRequestLoggingFilter(); | |
filter.setIncludeQueryString(true); | |
filter.setIncludePayload(true); | |
filter.setMaxPayloadLength(10000); | |
filter.setIncludeHeaders(false); | |
filter.setAfterMessagePrefix("Request data : "); | |
return filter; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment