Class HawaiiLoggingConfiguration
- java.lang.Object
-
- org.hawaiiframework.logging.config.HawaiiLoggingConfiguration
-
@Configuration @EnableConfigurationProperties(HawaiiLoggingConfigurationProperties.class) @Import({CxfLoggingConfiguration.class,DataSourceProxyConfiguration.class,HawaiiLoggingFilterConfiguration.class,ScheduledConfiguration.class,StatementLoggerQueryExecutionListenerConfiguration.class}) public class HawaiiLoggingConfiguration extends Object
Configures the logging based on the application properties.This class creates filter beans for the enabled filters.
- Since:
- 2.0.0
- Author:
- Wouter Eerdekens, Paul Klos, Rutger Lubbers
-
-
Constructor Summary
Constructors Constructor Description HawaiiLoggingConfiguration()
-
Method Summary
-
-
-
Method Detail
-
passwordMaskerUtil
@Bean public PasswordMaskerUtil passwordMaskerUtil(HawaiiLoggingConfigurationProperties properties)
Create aPasswordMaskerUtil
bean.- Returns:
- the bean.
-
httpRequestResponseHeadersLogUtil
@Bean public HttpRequestResponseHeadersLogUtil httpRequestResponseHeadersLogUtil(PasswordMaskerUtil passwordMasker)
Create aHttpRequestResponseHeadersLogUtil
bean.- Returns:
- the bean.
-
httpRequestResponseLogBodyUtil
@Bean public HttpRequestResponseBodyLogUtil httpRequestResponseLogBodyUtil(PasswordMaskerUtil passwordMasker)
Create aHttpRequestResponseBodyLogUtil
bean.- Returns:
- the bean.
-
debugLogUtil
@Bean public HttpRequestResponseDebugLogUtil debugLogUtil()
Create aHttpRequestResponseDebugLogUtil
bean.- Returns:
- the bean.
-
loggingClientHttpRequestInterceptor
@Bean public LoggingClientHttpRequestInterceptor loggingClientHttpRequestInterceptor(HawaiiRequestResponseLogger hawaiiRequestResponseLogger)
Create aLoggingClientHttpRequestInterceptor
bean.- Returns:
- the bean.
-
hawaiiLogger
@Bean @ConditionalOnMissingBean(HawaiiRequestResponseLogger.class) public HawaiiRequestResponseLogger hawaiiLogger(HttpRequestResponseHeadersLogUtil headersLogUtil, HttpRequestResponseBodyLogUtil bodyLogUtil, HttpRequestResponseDebugLogUtil debugLogUtil, HawaiiLoggingConfigurationProperties hawaiiLoggingConfigurationProperties)
-
-