logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1606958 - in /logging/log4j/log4j2/trunk: log4j-api/src/main/java/org/apache/logging/log4j/status/StatusListener.java log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java
Date Tue, 01 Jul 2014 00:49:15 GMT
Author: mattsicker
Date: Tue Jul  1 00:49:15 2014
New Revision: 1606958

URL: http://svn.apache.org/r1606958
Log:
Extend EventListener for listener interfaces.

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusListener.java
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusListener.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusListener.java?rev=1606958&r1=1606957&r2=1606958&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusListener.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusListener.java
Tue Jul  1 00:49:15 2014
@@ -17,13 +17,14 @@
 package org.apache.logging.log4j.status;
 
 import java.io.Closeable;
+import java.util.EventListener;
 
 import org.apache.logging.log4j.Level;
 
 /**
  * Interface that allows implementers to be notified of events in the logging system.
  */
-public interface StatusListener extends Closeable {
+public interface StatusListener extends Closeable, EventListener {
 
     /**
      * Called as events occur to process the StatusData.

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java?rev=1606958&r1=1606957&r2=1606958&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java
Tue Jul  1 00:49:15 2014
@@ -16,12 +16,14 @@
  */
 package org.apache.logging.log4j.core;
 
+import java.util.EventListener;
+
 import org.apache.logging.log4j.LogManager;
 
 /**
  * Base class for server classes that listen to {@link LogEvent}s.
  */
-public class LogEventListener {
+public class LogEventListener implements EventListener {
 
     private final LoggerContext context;
 



Mime
View raw message