Class IsyLoggingAutoConfiguration
java.lang.Object
de.bund.bva.isyfact.logging.autoconfigure.IsyLoggingAutoConfiguration
@Configuration
@ConditionalOnProperty(name="isy.logging.autoconfiguration.enabled",
matchIfMissing=true)
@EnableAspectJAutoProxy
@EnableConfigurationProperties
public class IsyLoggingAutoConfiguration
extends Object
Spring autoconfiguration for including the isy-logging library in the Spring context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.aop.AdvisorboundaryLogAdvisorByAnnotation(IsyLoggingBoundaryLoggerProperties properties, LoggingMethodInterceptor boundaryLogInterceptor) Advisor for logging at system boundaries.Interceptor for logging at system boundaries.org.springframework.aop.AdvisorcomponentLogAdvisorByAnnotation(IsyLoggingComponentLoggerProperties properties, LoggingMethodInterceptor componentLogInterceptor) Advisor for logging at component boundaries.Interceptor for logging at component boundaries.Creates a bean for the configuration parameters of the application logger.Creates a bean for the boundary logger configuration parameters.Creates a bean for the configuration parameters of the component logger.statusLogger(IsyLoggingApplicationLoggerProperties properties) Listener for logging during startup/shutdown.
-
Constructor Details
-
IsyLoggingAutoConfiguration
public IsyLoggingAutoConfiguration()
-
-
Method Details
-
isyLoggingApplicationLoggerProperties
@Bean @ConfigurationProperties(prefix="isy.logging.anwendung") public IsyLoggingApplicationLoggerProperties isyLoggingApplicationLoggerProperties()Creates a bean for the configuration parameters of the application logger.- Returns:
- Bean isyLoggingApplicationLoggerProperties.
-
isyLoggingBoundaryLoggerProperties
@Bean @ConfigurationProperties(prefix="isy.logging.boundary") public IsyLoggingBoundaryLoggerProperties isyLoggingBoundaryLoggerProperties()Creates a bean for the boundary logger configuration parameters.- Returns:
- Bean isyLoggingBoundaryLoggerProperties.
-
isyLoggingComponentLoggerProperties
@Bean @ConfigurationProperties(prefix="isy.logging.component") public IsyLoggingComponentLoggerProperties isyLoggingComponentLoggerProperties()Creates a bean for the configuration parameters of the component logger.- Returns:
- Bean isyMessageKafkaHealthIndicatorProperties.
-
statusLogger
Listener for logging during startup/shutdown.- Parameters:
properties- Parameters for the configuration of the status logger.- Returns:
- Listener for logging during startup/shutdown.
-
boundaryLogInterceptor
@Bean public LoggingMethodInterceptor boundaryLogInterceptor(IsyLoggingBoundaryLoggerProperties properties) Interceptor for logging at system boundaries.- Parameters:
properties- Parameters for the configuration of the interceptor.- Returns:
- Interceptor for logging at system boundaries.
-
componentLogInterceptor
@Bean public LoggingMethodInterceptor componentLogInterceptor(IsyLoggingComponentLoggerProperties properties) Interceptor for logging at component boundaries.- Parameters:
properties- Parameters for the configuration of the interceptor.- Returns:
- Interceptor for logging at component boundaries.
-
boundaryLogAdvisorByAnnotation
@Bean public org.springframework.aop.Advisor boundaryLogAdvisorByAnnotation(IsyLoggingBoundaryLoggerProperties properties, @Qualifier("boundaryLogInterceptor") LoggingMethodInterceptor boundaryLogInterceptor) Advisor for logging at system boundaries.- Parameters:
properties- Properties for the configuration of the pointcut.boundaryLogInterceptor- Interceptor for logging.- Returns:
- Advisor for logging at system boundaries.
-
componentLogAdvisorByAnnotation
@Bean public org.springframework.aop.Advisor componentLogAdvisorByAnnotation(IsyLoggingComponentLoggerProperties properties, @Qualifier("componentLogInterceptor") LoggingMethodInterceptor componentLogInterceptor) Advisor for logging at component boundaries.- Parameters:
properties- Properties for the configuration of the pointcut.componentLogInterceptor- Interceptor for logging.- Returns:
- Advisor for logging at component boundaries.
-