Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
SimpleLoggerServer(int port,
LoggingEventProcessor eventProcessor)
Create a logger server on a given port.
|
SimpleLoggerServer(LoggingEventProcessor eventProcessor)
Create a logger server on any free port.
|
Modifier and Type | Method and Description |
---|---|
static SimpleLoggerServer |
createLoggerServer(LoggingEventProcessor eventProcessor)
Create and start a new logger server on any free port.
|
int |
getPort()
Return the binding port of the created server.
|
void |
run() |
void |
stop()
Stop this logger server.
|
public SimpleLoggerServer(int port, LoggingEventProcessor eventProcessor) throws IOException
port
- the binding port of the created server.eventProcessor
- IOException
public SimpleLoggerServer(LoggingEventProcessor eventProcessor) throws IOException
IOException
public static SimpleLoggerServer createLoggerServer(LoggingEventProcessor eventProcessor) throws IOException
IOException
public int getPort()
public void stop()