org.apache.avalon.excalibur.logger.factory
Class SocketTargetFactory
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
|
+--org.apache.avalon.excalibur.logger.factory.SocketTargetFactory
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, LogTargetFactory
- public class SocketTargetFactory
- extends AbstractTargetFactory
SocketTargetFactory
This factory creates LogTargets with a wrapped SocketOutputTarget around it:
<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
- Version:
-
- Author:
- Rajendra Ghorpade
Method Summary |
org.apache.log.LogTarget |
createTarget(org.apache.avalon.framework.configuration.Configuration conf)
Creates a log target based on Configuration |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketTargetFactory
public SocketTargetFactory()
createTarget
public org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Creates a log target based on Configuration
- Overrides:
createTarget
in class AbstractTargetFactory
- Parameters:
conf
- Configuration requied for creating the log target- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if something goes wrong while reading from
configuration
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.