JBoss Community

How can enable all the log regarding REST process in Jboss5.

created by sankar devarajan in Beginner's Corner - View the full discussion

Hi Friends,

 

I have implemented REST  in Jboss5.

now i want enable all the log regarding REST process in Jboss.

 

My RestImpl as folows,

  @POST

  @Path("/test")

  @Consumes(MediaType.APPLICATION_XML)

  @Produces(MediaType.APPLICATION_XML)

...

...

...

 

For example,

one transaction from  Client ---> Server ---> Client.

Total Time 3Sec.

 

  Client Side Process only 1Sec

  Server side Process only 200millisec[Only Java class process]

  Now i want to find out how much time taken for network transaction and how much time taken

  for Jboss process [i.e,,REST conversion process(Object to XML, XML to Object) and etc]

  Can any one help me how can i enable the REST process logs and all other logs.

 

I have added some tag in jboss-log4j.xml but i am not getting all the log.

  

   jboss-log4j.xml

   ---------------

   ...

   ...

   <category name="org.jboss.resteasy">

   <priority value="DEBUG"/>

   </category>

  

   <category name="javax.xml.bind">

      <priority value="DEBUG"/>

   </category>

  

   <category name="org.jboss.serial">

      <priority value="INFO"/>

   </category>

  

   <category name="javax.enterprise.resource.webcontainer.jsf">

     <priority value="INFO" class="org.jboss.logging.log4j.JDKLevel"/>

   </category>

  

   <category name="org.jgroups">

      <priority value="WARN"/>

   </category>

  

   <category name="org.quartz">

      <priority value="INFO"/>

   </category>

 

 

   <category name="com.sun">

      <priority value="INFO"/>

   </category>

  

   <category name="sun">

      <priority value="INFO"/>

   </category>

 

 

   <category name="javax.xml.bind">

      <priority value="INFO"/>

   </category>

 

 

   <category name="org.springframework">

     <priority value="WARN"/>

   </category>

 

 

   <category name="org.jboss.management">

      <priority value="INFO"/>

   </category>

 

 

   <category name="facelets.compiler">

      <priority value="WARN"/>

   </category>

  

   <category name="org.ajax4jsf.cache">

      <priority value="WARN"/>

   </category>

  

   <category name="org.rhq">

      <priority value="WARN"/>

   </category>

     

   <category name="org.jboss.seam">

      <priority value="WARN"/>

   </category>

 

 

   <category name="org.mc4j.ems">

      <priority value="WARN"/>

   </category>

   ...

   ...

  

   ServerLog:

   ----------

14:57:07,847 DEBUG [SynchronousDispatcher] PathInfo: /authenticate/test

14:57:07,848 FINE  [bind] Trying to locate ../login/jaxb.properties

14:57:07,850 FINE  [bind]   not found

14:57:07,852 FINE  [bind] Checking system property javax.xml.bind.JAXBContext

14:57:07,853 FINE  [bind]   not found

14:57:07,857 FINE  [bind] Checking META-INF/services

14:57:07,859 FINE  [bind] Reading vfszip:/D:/Program Files/jboss-5.0.1/jboss-as/lib/jaxb-impl.jar/META-INF/services/javax.xml.bind.JAXBContext

14:57:07,869 FINE  [bind] Trying to load com.sun.xml.bind.v2.ContextFactory

14:57:07,872 FINE  [bind] loaded com.sun.xml.bind.v2.ContextFactory from vfszip:/D:/Program Files/jboss-5.0.1/jboss-as/lib/jaxb-impl.jar/com/sun/xml/bind/v2/ContextFactory.class

[TestRestImpl]  null   ***.***.**** [Login started].

[TestRestImpl]  null   ***.***.**** [Login finished].

14:57:08,170 FINE  [bind] Trying to locate ../login/jaxb.properties

14:57:08,170 FINE  [bind]   not found

14:57:08,171 FINE  [bind] Checking system property javax.xml.bind.JAXBContext

14:57:08,174 FINE  [bind]   not found

14:57:08,175 FINE  [bind] Checking META-INF/services

14:57:08,178 FINE  [bind] Reading vfszip:/D:/Program Files/jboss-5.0.1/jboss-as/lib/jaxb-impl.jar/META-INF/services/javax.xml.bind.JAXBContext

14:57:08,183 FINE  [bind] Trying to load com.sun.xml.bind.v2.ContextFactory

14:57:08,184 FINE  [bind] loaded com.sun.xml.bind.v2.ContextFactory from vfszip:/D:/Program Files/jboss-5.0.1/jboss-as/lib/jaxb-impl.jar/com/sun/xml/bind/v2/ContextFactory.class

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community