There is some auditing in my application. Every audit event has it's own log4j category with name that is prefixed by same string.
EG: general auditing category name: com.company.audit
web login category name: com.company.audit.web.login
create something: com.company.audit.api.create
etc..
some of the categories should be logged by default, but some not =>
<category name="com.compamy.audit" additivity="true"> <priority value="INFO"/> </category>
<category name="com.company.audit.web.login" additivity="true"> <priority value="DEBUG"/> </category>
As default is INFO second category shouldn't be logged. At least I thought it but it doesn't work. Any help how to override logging level on 'sub-category'.
NOTE: I don't have much possibility to change a naming scheme as a whole
ADDED:
here is configuration of appender:
<appender class="org.apache.log4j.RollingFileAppender" name="Company_AUDIT">
<param name="File" value="${jboss.server.log.dir}/company_audit.log"/>
<param value="10000KB" name="MaxFileSize"/>
<param value="10" name="MaxBackupIndex"/>
<layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="foo"/> </layout>
</appender>