| Modifier and Type | Field and Description |
|---|---|
| private ObjectOutputStream | m_outputStream
Output strem to write the log |
| private Socket | m_socket
Socket to communicate with the server |
| Access | Constructor and Description |
|---|---|
| public | SocketOutputTarget(final InetAddress
end point address address, final int the end point port port)Creates output target with the end point specified by the address and port |
| public | SocketOutputTarget(final String
end point host host, final int the end point port port)Creates the output target with the end point specified by host and port |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | close()
Overrides org. Implements org. |
| protected void | doProcessEvent(LogEvent
the LogEvent event)Overrides org. |
| protected void |
| m_outputStream | back to summary |
|---|---|
| private ObjectOutputStream m_outputStream Output strem to write the log | |
| m_socket | back to summary |
|---|---|
| private Socket m_socket Socket to communicate with the server | |
| SocketOutputTarget | back to summary |
|---|---|
| public SocketOutputTarget(final InetAddress address, final int port) throws IOException Creates output target with the end point specified by the address and port
| |
| SocketOutputTarget | back to summary |
|---|---|
| public SocketOutputTarget(final String host, final int port) throws IOException Creates the output target with the end point specified by host and port
| |
| close | back to summary |
|---|---|
| public synchronized void close() Overrides org. Implements org. Shutdown target. Attempting to write to target after close() will cause errors to be logged. | |
| doProcessEvent | back to summary |
|---|---|
| protected void doProcessEvent(LogEvent event) Overrides org. To process the LogEvent
| |
| write | back to summary |
|---|---|
| protected void write(LogEvent event) Writes the output as a LogEvent without formatting. Formatting ia applied on the server side where it is log.
| |