Hello all, I have incorporated log4j (1.2.13)in my web application (which uses Struts 1.2). I have added log statements in one of the Custom Action class for testing purpose only& its logging properly at desired location in a log file..I am using FileAppender with some conversion pattern. Now the issue is, I was expecting log statements from my Action class only whereas its logging everything(log statements from Struts specific classes like RequestProcessor etc.) into same log file. What i need is log from my classes only, can you help me to achieve the same?
set the additivity to fasle , then this will only add to the current appender not to the parent appenders. But from the previous post i guess that you have already fixed this..My fix is for .4 version of log4j..in which category class has been depricated..the only availabel public class is Logger.