I am trying to configure LogKit to output to LogFactor5 like Log4J. I know LogFactor5 is working correctly because log4J outputs to it from JBoss. I haven't been able to find any information on the socket-target from the mailing-list archives or the jakarta site. Is SocketTarget compatible with LogKit? Am I missing something in the config? Thanks.
Here is my current LogKit configuration for Cocoon:

<logkit>
<factories>
<factory type="priority-filter" class="org.apache.avalon.excalibur.logger.factory.PriorityFilterTargetFa ctory"/>
<factory type="servlet" class="org.apache.avalon.excalibur.logger.factory.ServletTargetFactory"/ >
<factory type="cocoon" class="org.apache.cocoon.util.log.CocoonTargetFactory"/>
<factory type="socket-target" class="org.apache.avalon.excalibur.logger.factory.SocketTargetFactory"/ >
</factories>

<targets>
<socket-target id="sitemap">
<address hostname="192.168.2.11" port="4445" />
</socket-target>

<cocoon id="core">
<filename>${context-root}/WEB-INF/logs/core.log</filename>
<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
<!--
append=false: Will override existing log files on Cocoon startup
append=true: Will append to the existing log files
-->
<append>false</append>
<!--
rotation: allows you to rotate log files one they meet certain
criteria. In example below, files are rotated once they
are one hour old or bigger than 100 Mb.

<rotation type="revolving" init="1" max="4">
<or>
<size>100m</size>
<time>01:00:00</time>
</or>
</rotation>
-->
</cocoon>

<cocoon id="sitemap">
<filename>${context-root}/WEB-INF/logs/sitemap.log</filename>

<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
<append>false</append>
</cocoon>

<cocoon id="access">
<filename>${context-root}/WEB-INF/logs/access.log</filename>
<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
<append>false</append>
</cocoon>

<!--
This log file gets only messages with log level ERROR and below.
-->
<priority-filter id="error" log-level="ERROR">
<cocoon>
<filename>${context-root}/WEB-INF/logs/error.log</filename>
<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
<append>false</append>
</cocoon>
</priority-filter>
</targets>

<categories>
<!--
log-level: One of DEBUG, INFO, WARN, ERROR, FATAL-ERROR.
-->
<category name="core" log-level="DEBUG">
<category name="startup" log-level="DEBUG"/>
<category name="roles" log-level="DEBUG"/>
<category name="manager" log-level="DEBUG"/>
<category name="store" log-level="DEBUG"/>
<log-target id-ref="core"/>
<log-target id-ref="error"/>
</category>
<category name="sitemap" log-level="DEBUG">
<log-target id-ref="sitemap"/>
<log-target id-ref="error"/>
</category>
<category name="access" log-level="INFO">
<log-target id-ref="access"/>
<log-target id-ref="error"/>
</category>
</categories>
</logkit>


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to