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

setLoggerName

open fun setLoggerName(loggerName: String): Unit

Set the name of the logger to use. The name will be passed to the underlying logger implementation through Commons Logging, getting interpreted as log category according to the logger's configuration.

This can be specified to not log into the category of a class (whether this interceptor's class or the class getting called) but rather into a specific named category.

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

See Also
org.apache.commons.logging.LogFactory#getLog(String)java.util.logging.Logger#getLogger(String)