So I thought I would be studious and add correct logging to my
jboss project. :|
I'm having problems using Log4j (logging.apache.org/log4j) with Jboss. The things I know are:
that jboss uses log4j itself
that you must rename server/conf/log4j.xml to jboss-log4j.xml if you want your war's to have their own log4j.xml files to define their own logging.
But my problem is that I just want to define a limit on certain packages in my project, and append that to the main server.log.
so adding a log4j.xml file to my class root with just
<category name="com.company.packageparent">
<priority value="INFO"/>
</category>
<category name="com.company.packageparent.packagechild">
<priority value="DEBUG"/>
</category>
i don't think is right, and jboss complains about not being able to to parse the log xml.
Adding those categories to the actual jboss xml file didn't do anything either.
Any ideas would be most appreciated!