logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sarvananda <navnith.maud...@gmail.com>
Subject Re: level based logging into seperate files
Date Fri, 27 Jul 2007 17:45:07 GMT

right. 
with the fair amount of noob knowledge I have in Log4j, I ll do some google
and R&D and post how I did this. Mean while if someone feels they could give
me some other pointers regarding this issue... Id be grateful

thanks,


James Stauffer wrote:
> 
> Just create one appender per level and use a LevelFilter to get only
> the correct level.  You may find that doing something slightly
> different is more useful.  Have each appender have a certain level and
> above so that DebugAppender has all messages, InfoAppender has
> everything but DEBUG, etc.  I find that when I look through the DEBUG
> logs I want to see all higher logs also.
> 
> On 7/26/07, Sarvananda <navnith_maudgil@satyam.com> wrote:
>>
>> Dear all,
>>
>> I have a simple question and I have no solution. Did a lot of google and
>> tried too many things. I am not going where I want to. My only
>> requirement
>> is : I need to be able to use a logger object and append different levels
>> of
>> logs into different files (ofcourse the logs should have the classname,
>> time
>> and the error)(like Warn messages go to warn_log error messages go to
>> error_log) .  I am completely stuck with this simple thing... may be I
>> just
>> have too much on my mind.
>>
>> I would appreciate if someone could help me with this.
>>
>> Thanks in advance for your time
>>
>> Regards,
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/level-based-logging-into-seperate-files-tf4150902.html#a11808248
>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
> 
> 
> -- 
> James Stauffer        http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/level-based-logging-into-seperate-files-tf4150902.html#a11833767
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message