On Wednesday, November 20, 2002, at 12:26  AM, Raj Saini wrote:
The default output of logging in Phoneix is log files as defined in the assembly.xml. Is there a way to change the default output to console?

Be sure you are using logging 1.1 in environment.xml. Add a factory of:

<factory type="stream" class="org.apache.avalon.excalibur.logger.factory.StreamTargetFactory"/ >

and a target of:

<stream id="sout">
<stream>System.out</stream>
<format type="avalon">%8.8{priority} %{time:(yyyy-MM-dd) HH:mm.ss:SSS} [%8.8{category}] (%{thread}) %{class:short}: %{message}\n%{throwable}</format>
</stream>

If you give the 'id' the same value as the current default logger, you will have everything redirected to the console.

-peter
--
peter royal -> [EMAIL PROTECTED]


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



Reply via email to