logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1582332 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/UDPSocketServer.java
Date Thu, 27 Mar 2014 14:54:35 GMT
Author: ggregory
Date: Thu Mar 27 14:54:35 2014
New Revision: 1582332

URL: http://svn.apache.org/r1582332
Log:
[LOG4J2-583] TCP and UDP socket servers should be able to handle XML log events. Refactor
current code for XML and JSON. Fix broken test.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/UDPSocketServer.java

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=1582332&r1=1582331&r2=1582332&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
Thu Mar 27 14:54:35 2014
@@ -140,7 +140,7 @@ public class UDPSocketServer extends Abs
                 final DatagramPacket packet = new DatagramPacket(buf, buf.length);
                 datagramSocket.receive(packet);
                 final ByteArrayInputStream bais = new ByteArrayInputStream(packet.getData(),
packet.getOffset(), packet.getLength());
-                log(logEventInput.readLogEvent(bais));
+                log(logEventInput.readLogEvent(logEventInput.wrapStream(bais)));
             } catch (final OptionalDataException e) {
                 logger.error("OptionalDataException eof=" + e.eof + " length=" + e.length,
e);
             } catch (final EOFException e) {



Mime
View raw message