public class SocketTargetFactory extends AbstractTargetFactory
Configuration syntax:
<socket-target id="target-id"> <address hostname="hostname" port="4455" /> </socket-target>
This factory creates a SocketOutputTarget object which will TCP/IP socket to communicate with the server. The name of the target is specified by the hostname attribute of the <address> element and the port by the port attribute. In the config file above the formatting for the log messages is not embedded as it should be specified on the server side
m_configuration, m_context| Constructor and Description |
|---|
SocketTargetFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.log.LogTarget |
createTarget(org.apache.avalon.framework.configuration.Configuration conf)
Creates a log target based on Configuration
|
configure, contextualizepublic org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
conf - Configuration requied for creating the log targetorg.apache.avalon.framework.configuration.ConfigurationException - if something goes wrong while reading from
configuration