You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@excalibur.apache.org by yueming <yu...@langchao.com> on 2004/10/26 03:24:32 UTC
the excalibur-logger-1.1 problem
when org.apache.avalon.framework.container.ContainerUtil.dispose(m_manager);
in log kit the system.out will be close.
but initializeLoggerManager will not open system.out.
when <stream>System.out</stream> dispose ,then system.out never
appears ,except reboot websphere 5.1
How to reopen system.out
the logkit.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<logkit logger="system.logkit" log-level="INFO">
<factories>
<factory type="stream"
class="org.apache.avalon.excalibur.logger.factory.StreamTargetFactory"/>
</factories>
<targets>
<stream id="console">
<stream>System.out</stream>
<format type="extended">
%7.7{priority} %23.23{time:yyyy-MM-dd HH:mm:ss.SSS}
[%24.24{category}] (%{context}): %{message}\n%{throwable}
</format>
</stream>
</targets>
<categories>
<!-- Log output from the default logger -->
<category name="" log-level="INFO">
<log-target id-ref="console"/>
</category>
<!-- Log output from the fortress system -->
<category name="system" log-level="INFO">
<log-target id-ref="console"/>
</category>
</categories>
</logkit>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@excalibur.apache.org
For additional commands, e-mail: user-help@excalibur.apache.org
Apache Excalibur Project -- URL: http://excalibur.apache.org/