If you have not assign any level then it would take its root level as
its level to log...if you set any particular level specific to your
appenders then that level would overwrite its inherited root level...

-----Original Message-----
From: Kaunteya Bhattacharya [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 2:46 PM
To: Log4J Users List
Subject: RE: Cant create an isolated file for event logging


I think it maybe because it needs to have a <root> element displayed. I
have added this one to the XML and it works ok. 
<root>
        <priority value ="debug" />
        <appender-ref ref="CONSOLE"/>
</root>
If someone could clarify its behavior, that would be great. 

Thanks
KB 

Sensima Ltd
Salisbury, Wiltshire
(M): 07786322655


-----Original Message-----
From: Ramadoss Chinnakuzhandai
[mailto:[EMAIL PROTECTED] 
Sent: 28 May 2003 08:48
To: Log4J Users List
Subject: RE: Cant create an isolated file for event logging


Try level match filter which set to particular level...

E.g
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> 
                <layout class="org.apache.log4j.PatternLayout"> 
                        <param name="ConversionPattern" value="%d [%t]
%-5p %c - %m%n"/>
                </layout>
                
                <filter class="org.apache.log4j.varia.LevelMatchFilter">
                <param name="LevelToMatch" value="debug"/>    
                <param name="AcceptOnMatch" value="true"/>
                </filter>
              <filter class="org.apache.log4j.varia.DenyAllFilter"/>   
</appender>

Hope this help you...

Reg,
Ram

-----Original Message-----
From: Avner BenHanoch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 3:13 PM
To: Log4J Users List
Subject: Re: Cant create an isolated file for event logging


it seems that Appender.addFilter should do that.
I need that too, but never used it yet.
let me know if it does the work or not.
/avner

----- Original Message ----- 
From: "Kaunteya Bhattacharya" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 10:23 AM
Subject: Cant create an isolated file for event logging


Hi, 
I have been trying to configure log4j for a while now. I want to create
one file for errors (with DEBUG as the threshold) and one for INFO only.
I have gone through the entire list and found a lot of threads on this
but none have the appropriate answer. At the moment, I can create a
separate file which can log INFO and anything more severe than INFO. But
what if I want to log INFO alone? 
It seems you can do it using an XML config file. Does anyone have a
sample XML config file and code snippet as to how to
incorporate/initialize your logger from the XML file?

Please help. And thanks for any suggestions you may have. 

kB
Sensima Ltd
Salisbury, Wiltshire
(M): 07786322655


-----Original Message-----
From: Brendon Co [mailto:[EMAIL PROTECTED] 
Sent: 28 May 2003 02:38
To: Log4J Users List
Subject: RE: [NEWBIE] log4j setup problem?

Hi,

i have this problem on log4j:
"cant create xxx.log.2003-05-19"....


why is this happening?

By the way if i shutdown my tomcat for 2 days and start it again...why
is that my logging wont generate the files:  xxx.log.2003-05-26
xxx.log.2003-05-27

????


Please help...


Thanks,
brendon

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003
 

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

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




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


**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited
is 
'privileged' and 'confidential' and intended for use only by the
individual  or entity to which it is addressed. You are notified that
any use, copying 
or dissemination of the information contained in the E-MAIL in any
manner 
whatsoever is strictly prohibited.

************************************************************************
***

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

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


**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

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

Reply via email to