spring-framework / org.springframework.aop.interceptor / AbstractTraceInterceptor / setUseDynamicLogger

setUseDynamicLogger

open fun setUseDynamicLogger(useDynamicLogger: Boolean): Unit

Set whether to use a dynamic logger or a static logger. Default is a static logger for this trace interceptor.

Used to determine which Log instance should be used to write log messages for a particular method invocation: a dynamic one for the Class getting called, or a static one for the Class of the trace interceptor.

NOTE: Specify either this property or "loggerName", not both.

See Also
#getLoggerForInvocation(org.aopalliance.intercept.MethodInvocation)