logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1574222 - in /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core: AbstractServer.java LogEventListener.java net/AbstractJMSReceiver.java net/SocketServer.java net/UDPSocketServer.java
Date Tue, 04 Mar 2014 22:05:29 GMT
Author: mattsicker
Date: Tue Mar  4 22:05:29 2014
New Revision: 1574222

URL: http://svn.apache.org/r1574222
Log:
Rename AbstractServer to LogEventListener.

Added:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java
      - copied, changed from r1573799, logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/AbstractServer.java
Removed:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/AbstractServer.java
Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/AbstractJMSReceiver.java
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/UDPSocketServer.java

Copied: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java
(from r1573799, logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/AbstractServer.java)
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java?p2=logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java&p1=logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/AbstractServer.java&r1=1573799&r2=1574222&rev=1574222&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/AbstractServer.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/LogEventListener.java
Tue Mar  4 22:05:29 2014
@@ -19,13 +19,13 @@ package org.apache.logging.log4j.core;
 import org.apache.logging.log4j.LogManager;
 
 /**
- *
+ * Base class for server classes that listen to {@link org.apache.logging.log4j.core.LogEvent
LogEvents}.
  */
-public class AbstractServer {
+public class LogEventListener {
 
     private final LoggerContext context;
 
-    protected AbstractServer() {
+    protected LogEventListener() {
         context = (LoggerContext) LogManager.getContext(false);
     }
 

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/AbstractJMSReceiver.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/AbstractJMSReceiver.java?rev=1574222&r1=1574221&r2=1574222&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/AbstractJMSReceiver.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/AbstractJMSReceiver.java
Tue Mar  4 22:05:29 2014
@@ -24,13 +24,13 @@ import javax.naming.NamingException;
 
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.core.AbstractServer;
 import org.apache.logging.log4j.core.LogEvent;
+import org.apache.logging.log4j.core.LogEventListener;
 
 /**
  * Abstract base class for receiving LogEvents over JMS. This class expects all messages
to be serialized log events.
  */
-public abstract class AbstractJMSReceiver extends AbstractServer implements javax.jms.MessageListener
{
+public abstract class AbstractJMSReceiver extends LogEventListener implements javax.jms.MessageListener
{
 
     /**
      * Logger to capture diagnostics.

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java?rev=1574222&r1=1574221&r2=1574222&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/SocketServer.java
Tue Mar  4 22:05:29 2014
@@ -37,7 +37,7 @@ import java.util.concurrent.ConcurrentMa
 
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.core.AbstractServer;
+import org.apache.logging.log4j.core.LogEventListener;
 import org.apache.logging.log4j.core.LogEvent;
 import org.apache.logging.log4j.core.config.Configuration;
 import org.apache.logging.log4j.core.config.ConfigurationFactory;
@@ -47,7 +47,7 @@ import org.apache.logging.log4j.core.con
 /**
  * Listens for events over a socket connection.
  */
-public class SocketServer extends AbstractServer implements Runnable {
+public class SocketServer extends LogEventListener implements Runnable {
 
     private final Logger logger;
 

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/UDPSocketServer.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/UDPSocketServer.java?rev=1574222&r1=1574221&r2=1574222&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/UDPSocketServer.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/UDPSocketServer.java
Tue Mar  4 22:05:29 2014
@@ -34,8 +34,8 @@ import java.net.URL;
 
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.core.AbstractServer;
 import org.apache.logging.log4j.core.LogEvent;
+import org.apache.logging.log4j.core.LogEventListener;
 import org.apache.logging.log4j.core.config.Configuration;
 import org.apache.logging.log4j.core.config.ConfigurationFactory;
 import org.apache.logging.log4j.core.config.XMLConfiguration;
@@ -44,7 +44,7 @@ import org.apache.logging.log4j.core.con
 /**
  * Listens for events over a socket connection.
  */
-public class UDPSocketServer extends AbstractServer implements Runnable {
+public class UDPSocketServer extends LogEventListener implements Runnable {
 
     private final Logger logger;
 



Mime
View raw message