HiI have a web application where the class structure is as below com.test.myproject.common
I have a class under package common, i want to print all the logs from this log file to a separate log file, so i defined log4j.xml file as below. For some reason all the logs are logged in log4jXml.xml and in STDOUT, but log file StartUpInfo.log is empty what am i doing wrong, is there a way to debug log4j itself <appender name="A1" class="org.apache.log4j.DailyRollingFileAppender"> <param name="File" value="/mylog/log4jXml.xml" /> <param name="DatePattern" value="'.'yyyy-MM-dd" /> <layout class="org.apache.log4j.xml.XMLLayout"></layout> </appender> <appender name="A2" class="org.apache.log4j.FileAppender"> <param name="File" value="/mylog/StartUpInfo.log" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) - %m%n" /> </layout> </appender> <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%F:%L) - %m%n" /> </layout> </appender> <category name="com.test.myproject"> <priority value="debug" /> <appender-ref ref="A1" /> </category> <category name="com.test.myproject.common.LoadCommonData" additivity="false"> <priority value="debug" /> <appender-ref ref="A2" /> </category> <root> <priority value="DEBUG"></priority> <appender-ref ref="STDOUT" /> </root>