From e1e683cbbb3fb75bbfdf82fb55b53990911cc3b5 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 15 Nov 2012 10:18:21 +0000 Subject: [PATCH] avoid logger with name ended with .null if no hint git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409719 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/cli/logging/Slf4jLoggerManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) ) ); } //