Skip to content

Commit d7a1b01

Browse files
refactor: Loggers should be named for their enclosing classes
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.logging.slf4j.LoggersNamedForEnclosingClass?organizationId=U3ByaW5n Co-authored-by: Moderne <[email protected]>
1 parent d37fa9e commit d7a1b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/mapping/event/LoggingEventListenerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void setUp() {
4545
appender = new ListAppender<>();
4646

4747
// set log level for LoggingEventListener to "info" and set up an appender capturing events.
48-
logger = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(LoggingEventListener.class);
48+
logger = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(LoggingEventListenerTests.class);
4949

5050
logger.setAdditive(false);
5151
logger.setLevel(Level.INFO);

0 commit comments

Comments
 (0)