org.apache.avalon.excalibur.logger.factory
クラス ServletTargetFactory
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
|
+--org.apache.avalon.excalibur.logger.factory.ServletTargetFactory
- すべての実装インタフェース:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, LogTargetFactory
- public final class ServletTargetFactory
- extends AbstractTargetFactory
ServletTargetFactory class.
This factory creates a ServletOutputLogTargets. It uses the context-key attribute
to locate the ServletContext needed out of the Context object passed to this factory.
The default context-key is "servlet-context".
<servlet id="target-id" context-key="context-key-to-servlet-context-object">
<format type="raw|pattern|extended">pattern to be used if needed</format>
</servlet>
- <format>
-
The type attribute of the pattern element denotes the type of
Formatter to be used and according to it the pattern to use for.
This elements defaults to:
%7.7{priority} %5.5{time} [%8.8{category}] (%{context}): %{message}\\n%{throwable}
- 導入されたバージョン:
- 4.0
- バージョン:
- CVS $Revision: 1.4 $ $Date: 2001/12/19 23:34:50 $
- 作成者:
- Giacomo Pati
メソッドの概要 |
org.apache.log.LogTarget |
createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
create a LogTarget based on a Configuration |
protected org.apache.log.format.Formatter |
getFormatter(org.apache.avalon.framework.configuration.Configuration conf)
|
クラス 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 |
ServletTargetFactory
public ServletTargetFactory()
createTarget
public final org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- create a LogTarget based on a Configuration
- オーバーライド:
- クラス
AbstractTargetFactory
内の createTarget
getFormatter
protected org.apache.log.format.Formatter getFormatter(org.apache.avalon.framework.configuration.Configuration conf)
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."