-
1. Re: log4j configuration with JBoss AS & Seam
ccanning Dec 15, 2006 6:32 PM (in response to spambob)I use the one in /server/{server-configuration}/conf/. It works fine for me. Is your log4j.xml setup correctly?
-
2. Re: log4j configuration with JBoss AS & Seam
spambob Dec 15, 2006 6:53 PM (in response to spambob)Thanks for your response. All i did was adding
<category name="com.example"> <priority value="DEBUG" /> </category>
to /server/{server-configuration}/conf/log4j.xml but JBoss seems to ignore this entry (code is executed but the logging statement is omitted because the logging level is set to INFO).
Is there any additional configuration necessary in the application or did you only add stuff to /conf/log4j.xml?
On the other hand i got it working by removing log4j* from /server/{server-configuration}/lib and adding it to the top of my ear but then JBoss cries cause of the missing jars therefore this seems not the way to do it :(. -
3. Re: log4j configuration with JBoss AS & Seam
norman.richards Dec 15, 2006 7:36 PM (in response to spambob)This page (the part at the end) should help with per-app logging:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeparatingApplicationLogs -
4. Re: log4j configuration with JBoss AS & Seam
m_hess Jan 3, 2007 7:33 AM (in response to spambob)Does this mean, that there is no way of providing a log4j.xml together with the application? Maybe it´s just me, but I don´t like the idea of having a "centralized" logging configuration. I would like a more modular approach where I can provide the configuration on a "per-Application" basis.
Is this possible at all? -
5. Re: log4j configuration with JBoss AS & Seam
norman.richards Jan 3, 2007 9:13 AM (in response to spambob)I honestly have no idea. I love the centralized logging and can't imagine why someone would want to lock their runtime logging configuration inside of their application. Most people I run are going exactly the opposite direction to yours. They have been keeping their logging with their application and found that to be inflexibile and hard to maintain.
That being said, you should look at one JBoss AS forums to ask about logging specifics. You'll be much more likely to get an informed answer there