All Downloads are FREE. Search and download functionalities are using the official Maven repository.

im.aop.loggers.advice.afterthrowing.LogAfterThrowingConfiguration Maven / Gradle / Ivy

Go to download

A handy and configurable sets of annotation-based loggers for Spring Boot that can log every execution of a method when entering or exiting normally or abnormally, without you writing a single line of code using aspect-oriented programming (AOP)

There is a newer version: 1.1.3
Show newest version
package im.aop.loggers.advice.afterthrowing;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import im.aop.loggers.AopLoggersProperties;

@Configuration(proxyBeanMethods = false)
public class LogAfterThrowingConfiguration {

  @Bean
  public LogAfterThrowingAdvice logAfterThrowingAdvice() {
    return new LogAfterThrowingAdvice();
  }

  @Bean
  public LogAfterThrowingService logAfterThrowingService(
      final AopLoggersProperties aopLoggersProperties) {
    return new LogAfterThrowingService(aopLoggersProperties);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy