Class AlhLoggingAutoConfiguration
java.lang.Object
com.github.catomat0.aoploghelper.logging.autoconfigure.AlhLoggingAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(org.aspectj.lang.annotation.Aspect.class)
@ConditionalOnProperty(prefix="alh.logging",
name="enabled",
havingValue="true",
matchIfMissing=true)
@EnableConfigurationProperties(AlhLoggingProperties.class)
@EnableAspectJAutoProxy
public class AlhLoggingAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.aop.support.DefaultPointcutAdvisoralhLoggingAnnotationAdvisor(AlhLoggingAspect interceptor) Registers a second advisor triggered by theLogExecutionannotation so callers can opt-in per-class/per-method regardless of the global pointcut.alhLoggingAspect(AlhLoggingProperties properties, SensitiveMasker masker) org.springframework.aop.aspectj.AspectJExpressionPointcutAdvisoralhLoggingPointcutAdvisor(AlhLoggingProperties properties, AlhLoggingAspect interceptor) Registers the configurable pointcut (alh.logging.pointcut) so any bean whose method matches the expression will be logged.alhSensitiveMasker(AlhLoggingProperties properties)
-
Constructor Details
-
AlhLoggingAutoConfiguration
public AlhLoggingAutoConfiguration()
-
-
Method Details
-
alhSensitiveMasker
@Bean @ConditionalOnMissingBean public SensitiveMasker alhSensitiveMasker(AlhLoggingProperties properties) -
alhLoggingAspect
@Bean @ConditionalOnMissingBean public AlhLoggingAspect alhLoggingAspect(AlhLoggingProperties properties, SensitiveMasker masker) -
alhLoggingPointcutAdvisor
@Bean public org.springframework.aop.aspectj.AspectJExpressionPointcutAdvisor alhLoggingPointcutAdvisor(AlhLoggingProperties properties, AlhLoggingAspect interceptor) Registers the configurable pointcut (alh.logging.pointcut) so any bean whose method matches the expression will be logged. Falls back to a permissive default that captures service and controller beans by naming convention. -
alhLoggingAnnotationAdvisor
@Bean public org.springframework.aop.support.DefaultPointcutAdvisor alhLoggingAnnotationAdvisor(AlhLoggingAspect interceptor) Registers a second advisor triggered by theLogExecutionannotation so callers can opt-in per-class/per-method regardless of the global pointcut.
-