<logger name="com.organisation.sus.broadband" additivity="false">
                <level value="DEBUG_4" />
        </logger>


-----Original Message-----
From: Alan Lewis [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 11:02 AM
To: [email protected]
Subject: Question?


Hi 


Can anyone tell me if the additivity property of the loggers can be
specified in the configuration file? I know it an be set
programmatically, but a single configuration point that is applied
globally is more robust.

e.g.
...
    <logger name="com.organisation.sus.broadband">
      <level value="INFO"/>
<additivity value="false"/> OR
<param name="additivity" value="false" />
      <appender-ref ref="InfoRollingFileAppender_pres"/>
    </logger>

 
    <appender name="InfoRollingFileAppender_pres"
class="org.apache.log4j.DailyRollingFileAppender">
      <param name="DatePattern" value=".yyyy-MM-dd"/>
      <param name="encoding" value="UTF-8"/>
      <param name="ImmediateFlush" value="true"/>
      <param name="Threshold" value="INFO"/>
      <param name="File"
value="/usr/local/beadomains/fsmap/logs/bpres_info.log"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{HH:mm:ss} %-4r [%t] %-5p
%c %x - %m%n"/>
    </layout>
   </appender>
...

The ultimate intent is to have a different log file for each Priority;
INFO.log, DEBUG.log, WARNING.log,...

I know there are GUI apps (Chainsaw, LF5), that can filter by log record
levels, but there is a "political" issue with using gui tools on the
production server.
Any help appreciated.


Regards
Alan Lewis


This email and the files transmitted with it are meant solely for the use of
the individual addressee(s) named above. They may contain confidential
and/or legally privileged information. If you are not the addressee(s) or
responsible for delivery of the message to the addressee(s), please delete
it from your system and contact the sender right away. The opinions,
conclusions and other information in this message which do not relate to the
official business of Wanadoo UK plc are not necessarily endorsed by it.
Wanadoo UK plc has taken steps to ensure that this email and any attachments
are virus-free, but it remains your responsibility to confirm and ensure
this.  

 

Wanadoo UK plc is a subsidiary of Wanadoo SA. Our registered office is at:
Maylands Avenue, Hemel Hempstead, Herts, HP2 7TG, and we are registered in
England and Wales, as Company No. 3014367


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

-------------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions 
USA, Inc. and are intended only for the addressee(s).  
The information contained herein may include trade secrets or privileged or 
otherwise confidential information.  Unauthorized review, forwarding, printing, 
copying, distributing, or using such information is strictly prohibited and may 
be unlawful.  If you received this message in error, or have reason to believe 
you are not authorized to receive it, please promptly delete this message and 
notify the sender by e-mail with a copy to [EMAIL PROTECTED] 

Thank you

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

Reply via email to