logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1391599 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
Date Fri, 28 Sep 2012 19:06:44 GMT
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);
     }
+
 }



Mime
View raw message