public class SocketBasedForwardingProvider extends Object implements LogForwardingProvider
Modifier and Type | Class and Description |
---|---|
static class |
SocketBasedForwardingProvider.SocketAppenderProvider
A simple container for a log4j SocketAppender.
|
Modifier and Type | Field and Description |
---|---|
static String |
RAW_PROTOCOL_PREFIX
Prefix for direct socket (i.e.
|
Constructor and Description |
---|
SocketBasedForwardingProvider() |
Modifier and Type | Method and Description |
---|---|
AppenderProvider |
createAppenderProvider(URI serverURI)
Create an appender provider (i.e.
|
URI |
createServer(LoggingEventProcessor eventProcessor)
Create locally a server that is able to receive logging events from the appender created by createAppenderProvider.
|
void |
terminateServer()
Terminate the server created by createServer().
|
public static final String RAW_PROTOCOL_PREFIX
public URI createServer(LoggingEventProcessor eventProcessor) throws LogForwardingException
LogForwardingProvider
createServer
in interface LogForwardingProvider
LogForwardingException
- if the server cannot be created.public void terminateServer()
LogForwardingProvider
terminateServer
in interface LogForwardingProvider
public AppenderProvider createAppenderProvider(URI serverURI)
LogForwardingProvider
createAppenderProvider
in interface LogForwardingProvider
serverURI
- the URI of the server that receives logging events appended in the contained appender.