Log4j : how to classify loger messages

2012-08-22 Thread adicj
hi all, Im new to log4j.i am trying to log the Info and error into two different files. here is my log4j.properties file # Direct info log messages to a log file log4j.appender.infofile=org.apache.log4j.RollingFileAppender log4j.appender.infofile.File=C\:\\infologing.log

Re: Log4j : how to classify loger messages

2012-08-22 Thread Brett Randall
It's worth noting that people have set this up before (log file per level) and concluded it was not a good solution for them [1]. I tend to agree, better to log to a single file at the appropriate threshold and a log-file viewer/post-processor if you want to filter further later. It can be very

Re: Log4j : how to classify loger messages

2012-08-22 Thread Ralph Goers
I found this link which seems to be exactly on topic - http://www.coderanch.com/t/62444/open-source/log-properties. The short answer is that you want to use the LevelMatchFilter but that can only be used with an XML configuration. Ralph On Aug 22, 2012, at 6:54 AM, adicj wrote: hi all,