public class XMLSocketNode extends ComponentBase implements Runnable
LoggingEvent
objects sent from a remote client using XML over
Sockets (TCP). These logging events are logged according to local
policy, as if they were generated locally.
For example, the socket node might decide to log events to a local file and also resent them to a second socket node.
repository
Constructor and Description |
---|
XMLSocketNode(String decoder,
Socket socket,
org.apache.log4j.spi.LoggerRepository hierarchy)
Constructor for socket and logger repository.
|
XMLSocketNode(String decoder,
Socket socket,
Receiver receiver)
Constructor for socket and reciever.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
setListener(SocketNodeEventListener _listener)
Set the event listener on this node.
|
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository
public XMLSocketNode(String decoder, Socket socket, org.apache.log4j.spi.LoggerRepository hierarchy)
public void setListener(SocketNodeEventListener _listener)
Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.