Hi Berin,

> In your logger manager configuration file, use a stream log target:
> 
> <stream/>  <!-- defaults to System.err -->
> <stream>System.out</stream>  <!-- use System.out -->
> 
> The best thing to help would be a copy of the logger manager
> configuration file.

Basically it is the one from the Fortress servlet example. I've added all the stream 
stuff. Here it comes:

=========== snip ============
<logkit>

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

    <targets>
       <file id="root">
        <filename>fortress-examples.log</filename>
        <format type="extended">
          %7.7{priority} %5.5{time}   [%8.8{category}] (%{context}): 
%{message}\n%{throwable}
        </format>
       </file>
                <stream id="root">System.out</stream>           
     </targets>

     <categories>
       <category name="" log-level="DEBUG">
         <log-target id-ref="root"/>
       </category>
     </categories>

</logkit>
=========== snap ============

The console stream works now perfectly, but still no log file. Where should it be 
located? In the work or context directory? Or do I have to set another location in the 
initilization phase?

Regards,
J�rg

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

Reply via email to