You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2012/09/28 21:06:44 UTC

svn commit: r1391599 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java

Author: ggregory
Date: Fri Sep 28 19:06:44 2012
New Revision: 1391599

URL: http://svn.apache.org/viewvc?rev=1391599&view=rev
Log:
Add getName() API.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java?rev=1391599&r1=1391598&r2=1391599&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java (original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java Fri Sep 28 19:06:44 2012
@@ -153,6 +153,15 @@ public class LoggerContext implements or
         }
     }
 
+    /**
+     * Gets the name.
+     * 
+     * @return the name.
+     */
+    public String getName() {
+        return name;
+    }
+
     public Status getStatus() {
         return status;
     }
@@ -301,4 +310,5 @@ public class LoggerContext implements or
     private Logger newInstance(LoggerContext ctx, String name) {
         return new Logger(ctx, name);
     }
+
 }