@Configuration @EnableConfigurationProperties(value=HawaiiLoggingConfigurationProperties.class) public class HawaiiLoggingConfiguration extends java.lang.Object
Constructor and Description |
---|
HawaiiLoggingConfiguration(HawaiiLoggingConfigurationProperties hawaiiLoggingConfigurationProperties)
Autowired constructor.
|
Modifier and Type | Method and Description |
---|---|
HttpRequestResponseLogUtil |
httpRequestResponseLogUtil()
Create a
HttpRequestResponseLogUtil bean. |
KibanaLogCleanupFilter |
kibanaLogCleanupFilter()
Create the
KibanaLogCleanupFilter bean. |
org.springframework.boot.web.servlet.FilterRegistrationBean |
kibanaLogCleanupFilterRegistration(KibanaLogCleanupFilter kibanaLogCleanupFilter)
Register the
kibanaLogCleanupFilter() bean. |
KibanaLogFilter |
kibanaLogFilter()
Create the
KibanaLogFilter bean. |
org.springframework.boot.web.servlet.FilterRegistrationBean |
kibanaLogFilterRegistration(KibanaLogFilter kibanaLogFilter)
Register the
kibanaLogFilter() bean. |
RequestDurationFilter |
requestDurationFilter()
Create the
RequestDurationFilter bean. |
org.springframework.boot.web.servlet.FilterRegistrationBean |
requestDurationFilterRegistration(RequestDurationFilter requestDurationFilter)
Register the
requestDurationFilter() bean. |
RequestIdFilter |
requestIdFilter()
Create the
RequestIdFilter bean. |
org.springframework.boot.web.servlet.FilterRegistrationBean |
requestIdFilterRegistration(RequestIdFilter requestIdFilter)
Register the
RequestIdFilter bean. |
RequestResponseLogFilter |
requestResponseLogFilter(HttpRequestResponseLogUtil httpRequestResponseLogUtil)
Create the request/response logging filter bean.
|
org.springframework.boot.web.servlet.FilterRegistrationBean |
requestResponseLogFilterRegistration(RequestResponseLogFilter requestResponseLogFilter)
Create and register the
RequestResponseLogFilter bean. |
TransactionIdFilter |
transactionIdFilter()
Create the
TransactionIdFilter bean. |
org.springframework.boot.web.servlet.FilterRegistrationBean |
transactionIdFilterRegistration(TransactionIdFilter transactionIdFilter)
Register the
transactionIdFilter() bean. |
UserDetailsFilter |
userDetailsFilter()
Create the
UserDetailsFilter bean. |
org.springframework.boot.web.servlet.FilterRegistrationBean |
userDetailsFilterRegistration(UserDetailsFilter userDetailsFilter)
Register the
userDetailsFilter() bean. |
public HawaiiLoggingConfiguration(HawaiiLoggingConfigurationProperties hawaiiLoggingConfigurationProperties)
hawaiiLoggingConfigurationProperties
- the logging configuration properties@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.kibana-log", name="enabled") public KibanaLogFilter kibanaLogFilter()
KibanaLogFilter
bean.KibanaLogFilter
bean@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.kibana-log", name="enabled") public org.springframework.boot.web.servlet.FilterRegistrationBean kibanaLogFilterRegistration(KibanaLogFilter kibanaLogFilter)
kibanaLogFilter()
bean.kibanaLogFilter
- the Kibana log filterKibanaLogFilter
bean, wrapped in a FilterRegistrationBean
@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.kibana-log-cleanup", name="enabled") public KibanaLogCleanupFilter kibanaLogCleanupFilter()
KibanaLogCleanupFilter
bean.KibanaLogCleanupFilter
bean@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.kibana-log-cleanup", name="enabled") public org.springframework.boot.web.servlet.FilterRegistrationBean kibanaLogCleanupFilterRegistration(KibanaLogCleanupFilter kibanaLogCleanupFilter)
kibanaLogCleanupFilter()
bean.kibanaLogCleanupFilter
- the Kibana log cleanup filterkibanaLogCleanupFilter()
bean, wrapped in a FilterRegistrationBean
@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.request-duration", name="enabled") public RequestDurationFilter requestDurationFilter()
RequestDurationFilter
bean.RequestDurationFilter
bean@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.request-duration", name="enabled") public org.springframework.boot.web.servlet.FilterRegistrationBean requestDurationFilterRegistration(RequestDurationFilter requestDurationFilter)
requestDurationFilter()
bean.requestDurationFilter
- the request duration filterrequestDurationFilter()
bean, wrapped in a FilterRegistrationBean
@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.request-id", name="enabled") public RequestIdFilter requestIdFilter()
RequestIdFilter
bean.RequestIdFilter
bean@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.request-id", name="enabled") public org.springframework.boot.web.servlet.FilterRegistrationBean requestIdFilterRegistration(RequestIdFilter requestIdFilter)
RequestIdFilter
bean.requestIdFilter()
bean, wrapped in a FilterRegistrationBean
@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.request-response", name="enabled") public RequestResponseLogFilter requestResponseLogFilter(HttpRequestResponseLogUtil httpRequestResponseLogUtil)
RequestResponseLogFilter
bean@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.request-response", name="enabled") public org.springframework.boot.web.servlet.FilterRegistrationBean requestResponseLogFilterRegistration(RequestResponseLogFilter requestResponseLogFilter)
RequestResponseLogFilter
bean.requestResponseLogFilter(HttpRequestResponseLogUtil)
bean, wrapped in a FilterRegistrationBean
@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.transaction-id", name="enabled") public TransactionIdFilter transactionIdFilter()
TransactionIdFilter
bean.TransactionIdFilter
bean@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.transaction-id", name="enabled") public org.springframework.boot.web.servlet.FilterRegistrationBean transactionIdFilterRegistration(TransactionIdFilter transactionIdFilter)
transactionIdFilter()
bean.transactionIdFilter
- the transaction id filtertransactionIdFilter()
bean, wrapped in a FilterRegistrationBean
@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.user-details", name="enabled") public UserDetailsFilter userDetailsFilter()
UserDetailsFilter
bean.UserDetailsFilter
bean@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.user-details", name="enabled") public org.springframework.boot.web.servlet.FilterRegistrationBean userDetailsFilterRegistration(UserDetailsFilter userDetailsFilter)
userDetailsFilter()
bean.userDetailsFilter
- the user details filteruserDetailsFilter()
bean, wrapped in a FilterRegistrationBean
@Bean @ConditionalOnProperty(prefix="hawaii.logging.filters.request-response", name="enabled") public HttpRequestResponseLogUtil httpRequestResponseLogUtil()
HttpRequestResponseLogUtil
bean.
This is required for the RequestResponseLogFilter
, see requestResponseLogFilter(HttpRequestResponseLogUtil)
.