-
1. Re: Turning of INFO-logging except for some categories
peterj Feb 11, 2008 1:21 AM (in response to pete007)One you set the threshold for an appender to WARN, only WARN and ERROR messages will ever be posted there - you will never get INFO messages.
To do what you want, you could try this (I haven't tried it so cannot vouch that it will work). Leave the threshold at INFO. Set the trace levels for com and org to WARN (you might ave to set a few more, also, depending on what show up in the trace), then set the trace levels for the things you want to INFO. Of course, this also effects the contents of server.log. -
2. Re: Turning of INFO-logging except for some categories
pete007 Feb 11, 2008 8:12 PM (in response to pete007)Ah, works great, thank you very much.
I commented out all category-entries in jboss-log4j.xml.
Then I created two new ones, and mostly all messages were gone:<category name="com"> <priority value="WARN"/> </category> <category name="org"> <priority value="WARN"/> </category>
An extra category enables the deploy-messages:<category name="org.jboss.deployment.EARDeployer">
<priority value="INFO" />
</category>
On each deploy I get the following additional messages:INFO [EARDeployer] Init J2EE application: file:/F:/jboss/server/default/deploy/test.ear WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext INFO [ServletContextListener] Welcome to Seam 2.0.0.GA WARN [Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgroups/MembershipListener INFO [EARDeployer] Started J2EE application: file:/F:/jboss/server/default/deploy/test.ear
Are these relevant/normal? -
3. Re: Turning of INFO-logging except for some categories
pete007 Feb 12, 2008 7:25 PM (in response to pete007)<category name="org.jboss.deployment.EARDeployer"> <priority value="INFO" /> </category>
-
4. Re: Turning of INFO-logging except for some categories
peterj Feb 13, 2008 10:01 AM (in response to pete007)The second warning is probably because you are running the "default" configuration and not the "all" configuration and is expected - some of the code dynamically determines if clustering is available and generates a warning if not. Not sure on the other one. But warning messages typically do not indicate a problem.