org.apache.avalon.excalibur.logger.factory
クラス SocketTargetFactory
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
|
+--org.apache.avalon.excalibur.logger.factory.SocketTargetFactory
- すべての実装インタフェース:
- 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
- バージョン:
-
- 作成者:
- Rajendra Ghorpade
メソッドの概要 |
org.apache.log.LogTarget |
createTarget(org.apache.avalon.framework.configuration.Configuration conf)
Creates a log target based on Configuration |
クラス org.apache.avalon.framework.logger.AbstractLogEnabled から継承したメソッド |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
クラス 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
- オーバーライド:
- クラス
AbstractTargetFactory
内の createTarget
- パラメータ:
conf
- Configuration requied for creating the log target- 例外:
org.apache.avalon.framework.configuration.ConfigurationException
- if something goes wrong while reading from
configuration
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."