Skip to content

Commit 4c38777

Browse files
committed
Explain logger name semantics (see AbstractTraceInterceptor.setLoggerName)
See gh-28678
1 parent fb29137 commit 4c38777

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spring-context/src/main/java/org/springframework/cache/interceptor/LoggingCacheErrorHandler.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,13 @@ public LoggingCacheErrorHandler(Log logger, boolean logStackTraces) {
8080
/**
8181
* Create a {@code LoggingCacheErrorHandler} that uses the supplied
8282
* {@code loggerName} and {@code logStackTraces} flag.
83-
* @param loggerName the logger name to use
83+
* @param loggerName the name of the logger to use. The name will be passed
84+
* to the underlying logger implementation through Commons Logging, getting
85+
* interpreted as log category according to the logger's configuration.
8486
* @param logStackTraces whether to log stack traces
8587
* @since 5.3.24
88+
* @see org.apache.commons.logging.LogFactory#getLog(String)
89+
* @see java.util.logging.Logger#getLogger(String)
8690
*/
8791
public LoggingCacheErrorHandler(String loggerName, boolean logStackTraces) {
8892
Assert.notNull(loggerName, "'loggerName' must not be null");

0 commit comments

Comments
 (0)