I'm sure this is simple but between Google and SO I haven't found the answer. I have a jboss 4.0.2 (I know it's old but I can't change it right now) webapp with log4j 1.2.9. I've set up logs for a console appender as well as a rolling file appender and they both work fine. I am trying to set up a log file that will log message coming from one packages (in my case, the com.sshtools package we use for SFTP). The main log fail and the console can also have these messages (or not, I really don't care). However, the ftp log should ONLY have messages from the com.sshtools package. Unfortunately, when I run the webapp, the FTP log gets all the messages instead of just the FTP ones.I am currently using categories to set levels for certain packages and using the appender-ref attribute. I have tried setting additivity to false for that package to no avail. I have tried switching the categories to loggers to no avail. I have tried setting appender-ref tags for all the packages (with them going to CONSOLE and FILE but not FTP) to no avail. I have seen responses for doing this with a properties file but NOT with an xml file. Since I don't know how to translate from a properties file to the xml file, those were not helpful to me.My log4j.xml is below:\[code\]<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"><!-- ===================================================================== --><!-- --><!-- Log4j Configuration --><!-- --><!-- ===================================================================== --><log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> <!-- ================================= --> <!-- Preserve messages in a local file --> <!-- ================================= --> <!-- A time/date based rolling appender --> <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="File" value="http://stackoverflow.com/questions/14592288/${jboss.server.home.dir}/log/server.log"/> <param name="Append" value="http://stackoverflow.com/questions/14592288/true"/> <param name="MaxFileSize" value="http://stackoverflow.com/questions/14592288/20MB"/> <param name="MaxBackupIndex" value="http://stackoverflow.com/questions/14592288/50"/> <!-- Rollover at midnight each day --> <param name="DatePattern" value="'.'yyyy-MM-dd"/> <layout class="org.apache.log4j.PatternLayout"> <!-- The default pattern: Date Priority [Category] Message\n --> <param name="ConversionPattern" value="http://stackoverflow.com/questions/14592288/%d %-5p [%c] %m%n"/> </layout> </appender> <appender name="FTP" class="org.jboss.logging.appender.RollingFileAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="File" value="http://stackoverflow.com/questions/14592288/${jboss.server.home.dir}/log/ftp.log"/> <param name="Append" value="http://stackoverflow.com/questions/14592288/true"/> <param name="MaxFileSize" value="http://stackoverflow.com/questions/14592288/20MB"/> <param name="MaxBackupIndex" value="http://stackoverflow.com/questions/14592288/50"/> <!-- Rollover at midnight each day --> <param name="DatePattern" value="'.'yyyy-MM-dd"/> <layout class="org.apache.log4j.PatternLayout"> <!-- The default pattern: Date Priority [Category] Message\n --> <param name="ConversionPattern" value="http://stackoverflow.com/questions/14592288/%d %-5p [%c] %m%n"/> </layout> </appender> <!-- ============================== --> <!-- Append messages to the console --> <!-- ============================== --> <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="Target" value="http://stackoverflow.com/questions/14592288/System.out"/> <param name="Threshold" value="http://stackoverflow.com/questions/14592288/INFO"/> <layout class="org.apache.log4j.PatternLayout"> <!-- The default pattern: Date Priority [Category] Message\n --> <param name="ConversionPattern" value="http://stackoverflow.com/questions/14592288/%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> </layout> </appender> <!-- ================ --> <!-- Limit categories --> <!-- ================ --> <!-- Limit the org.apache category --> <category name="org.apache"> <priority value="http://stackoverflow.com/questions/14592288/INFO"/> </category> <!-- Limit the org.jgroups category --> <category name="org.jgroups"> <priority value="http://stackoverflow.com/questions/14592288/WARN"/> </category> <!-- Limit apache axis --> <category name="org.jboss.axis"> <priority value="http://stackoverflow.com/questions/14592288/INFO"/> </category> <!-- Limit JBoss categories --> <category name="org.jboss"> <priority value="http://stackoverflow.com/questions/14592288/INFO"/> </category> <!-- Limit the JSR77 categories --> <category name="org.jboss.management"> <priority value="http://stackoverflow.com/questions/14592288/INFO"/> </category> <!-- Limit j2ssh categories --> <category name="com.sshtools"> <priority value="http://stackoverflow.com/questions/14592288/WARN"/> <appender-ref ref="FTP"/> </category> <!-- Limit Hibernate categories --> <category name="org.hibernate"> <priority value="http://stackoverflow.com/questions/14592288/ERROR"/> </category> <!-- Limit mchange categories --> <category name="com.mchange"> <priority value="http://stackoverflow.com/questions/14592288/WARN"/> </category> <!-- ======================= --> <!-- Setup the Root category --> <!-- ======================= --> <root> <appender-ref ref="CONSOLE"/> <appender-ref ref="FILE"/> <appender-ref ref="FTP"/> </root></log4j:configuration>\[/code\]EDIT: I've tried reordering the categories and the tags within them (not that it should make a difference) and still no change.