diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java b/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java index 9fd83d15be..140eccfb98 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java @@ -29,7 +29,9 @@ public class Slf4jLoggerManager public Logger getLoggerForComponent( String role, String hint ) { - return new Slf4jLogger( loggerFactory.getLogger( role + "." + hint ) ); + return ( null == hint + ? getLoggerForComponent( role ) + : new Slf4jLogger( loggerFactory.getLogger( role + "." + hint ) ) ); } //