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 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

      @Bean public LogApplicationListener statusLogger(IsyLoggingApplicationLoggerProperties properties)
      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.