Class HawaiiLoggingConfiguration
- java.lang.Object
-
- org.hawaiiframework.logging.config.HawaiiLoggingConfiguration
-
@Configuration @EnableConfigurationProperties(HawaiiLoggingConfigurationProperties.class) @Import({DataSourceProxyConfiguration.class,HawaiiLoggingFilterConfiguration.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.cxf.Bus
busConfiguration()
Configures the Apache CXF bus to use logging interceptors.HttpRequestResponseLogUtil
httpRequestResponseLogUtil()
Create aHttpRequestResponseLogUtil
bean.LoggingClientHttpRequestInterceptor
loggingClientHttpRequestInterceptor(HttpRequestResponseLogUtil requestResponseLogUtil)
Create aLoggingClientHttpRequestInterceptor
bean.
-
-
-
Method Detail
-
httpRequestResponseLogUtil
@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.request-response", name="enabled") public HttpRequestResponseLogUtil httpRequestResponseLogUtil()
Create aHttpRequestResponseLogUtil
bean.- Returns:
- the bean.
-
loggingClientHttpRequestInterceptor
@Bean public LoggingClientHttpRequestInterceptor loggingClientHttpRequestInterceptor(HttpRequestResponseLogUtil requestResponseLogUtil)
Create aLoggingClientHttpRequestInterceptor
bean.- Parameters:
requestResponseLogUtil
- The HTTP request response log utility.- Returns:
- the bean.
-
busConfiguration
@Bean @ConditionalOnProperty(name="hawaii.logging.soap.enabled") public org.apache.cxf.Bus busConfiguration()
Configures the Apache CXF bus to use logging interceptors.- Returns:
- the Apache CXF bus.
-
-