[jboss-user] [JBoss Seam] - Re: Newb: why don't any seam log messages appear in JBoss lo

christian.bauer@jboss.com do-not-reply at jboss.com
Thu Jun 14 11:45:19 EDT 2007


Btw, the first thing I do after a JBoss AS install is kick out the jboss-log4j.xml in server/default/conf and replace it with this:


  | <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  | 
  | <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
  | 
  |     <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
  |         <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |         <param name="Target" value="System.out"/>
  |         <layout class="org.apache.log4j.PatternLayout">
  |             <!-- The default pattern: Date Priority [Category] Message\n -->
  |             <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
  |         </layout>
  |     </appender>
  | 
  |     <!-- ############### Wiki logging #################  -->
  |     <category name="org.jboss.seam.wiki">
  |         <priority value="TRACE"/>
  |     </category>
  | 
  |     <!-- ############### Hibernate logging ################# -->
  |     <category name="org.hibernate">
  |         <priority value="INFO"/>
  |     </category>
  | 
  | <!--
  |       <category name="org.hibernate.ejb.AbstractEntityManagerImpl">
  | 	<priority value="DEBUG"/>
  |       </category>
  |       <category name="org.hibernate.loader">
  |           <priority value="DEBUG"/>
  |       </category>
  |       <category name="org.hibernate.cache">
  | 	<priority value="DEBUG"/>
  |       </category>
  |       -->
  | 
  |     <!-- ############### Seam logging ################### -->
  |     <category name="org.jboss.seam">
  |         <priority value="DEBUG"/>
  |     </category>
  | 
  |     <!-- These things are too noisy -->
  |        <category name="org.jboss.seam.jsf.SeamVariableResolver">
  |           <priority value="INFO"/>
  |        </category>
  |        <category name="org.jboss.seam.contexts.Contexts">
  |           <priority value="INFO"/>
  |        </category>
  |        <category name="org.jboss.seam.Component">
  |           <priority value="INFO"/>
  |        </category>
  |        <category name="org.jboss.seam.deployment.Scanner">
  |           <priority value="INFO"/>
  |        </category>
  |        <category name="org.jboss.seam.core.Events">
  |           <priority value="INFO"/>
  |        </category>
  |        <category name="org.jboss.seam.util.Naming">
  |           <priority value="INFO"/>
  |        </category>
  |        <category name="org.jboss.seam.debug.hot">
  |           <priority value="INFO"/>
  |        </category>
  | 
  |     <!-- Debugging conversations and persistence contexts
  |     <category name="org.jboss.seam.core.Manager"><priority value="DEBUG"/></category>
  |     <category name="org.jboss.seam.core.ManagedPersistenceContext"><priority value="DEBUG"/></category>
  |     <category name="org.jboss.seam.jsf.AbstractSeamPhaseListener"><priority value="DEBUG"/></category>
  |     <category name="org.jboss.seam.interceptors.ConversationInterceptor"><priority value="DEBUG"/></category>
  |     <category name="org.jboss.seam.contexts.Lifecycle"><priority value="DEBUG"/></category>
  |     <category name="org.hibernate.impl.SessionImpl"><priority value="DEBUG"/></category>
  |     <category name="org.hibernate.event.def.AbstractFlushingEventListener"><priority value="DEBUG"/></category>
  |  -->
  | 
  |     <root>
  |         <priority value="INFO"/>
  |         <appender-ref ref="CONSOLE"/>
  |     </root>
  | 
  | </log4j:configuration>
  | 
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054459#4054459

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054459



More information about the jboss-user mailing list