java log4j - log to both category and root logger
<p>I've a problem, please help me, here is it:</p>

<p>In log4j config file:</p>

<pre><code>log4j.rootLogger=info, stdout, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=logs/example.log

log4j.category.A3=, A3
log4j.appender.A3=org.apache.log4j.RollingFileAppender
log4j.appender.A3.File=logs/A3.log
</code></pre>

<p>in my java code:</p>

<pre><code>final static private Logger loggerA3 = Logger.getLogger("A3");
loggerA3.info("abcd");
</code></pre>

<p>the "abcd" string appears in both example.log and A3.log.
I want it appears only in A3.log, what should I do?</p>

<p>Thanks in advanced!</p>
