Explain logger name semantics (see AbstractTraceInterceptor.setLoggerName)

See gh-28678
This commit is contained in:
Juergen Hoeller 2022-10-19 14:49:27 +02:00
parent fb291379e4
commit 4c38777064
1 changed files with 5 additions and 1 deletions

View File

@ -80,9 +80,13 @@ public class LoggingCacheErrorHandler implements CacheErrorHandler {
/**
* Create a {@code LoggingCacheErrorHandler} that uses the supplied
* {@code loggerName} and {@code logStackTraces} flag.
* @param loggerName the logger name to use
* @param loggerName 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.
* @param logStackTraces whether to log stack traces
* @since 5.3.24
* @see org.apache.commons.logging.LogFactory#getLog(String)
* @see java.util.logging.Logger#getLogger(String)
*/
public LoggingCacheErrorHandler(String loggerName, boolean logStackTraces) {
Assert.notNull(loggerName, "'loggerName' must not be null");