<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
How can enable all the log regarding REST process in Jboss5.
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/dsankarmca">sankar devarajan</a> in <i>Beginner's Corner</i> - <a href="https://community.jboss.org/message/750613#750613">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Friends,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have implemented REST  in Jboss5.</p><p>now i want enable all the log regarding REST process in Jboss.</p><p>  </p><p>My RestImpl as folows,</p><p>  @POST</p><p>  @Path("/test")</p><p>  @Consumes(MediaType.APPLICATION_XML)</p><p>  @Produces(MediaType.APPLICATION_XML)</p><p>...</p><p>...</p><p>...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>For example,</p><p>one transaction from  Client ---> Server ---> Client.</p><p>Total Time 3Sec. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  Client Side Process only 1Sec</p><p>  Server side Process only 200millisec[Only Java class process]</p><p>  Now i want to find out how much time taken for network transaction and how much time taken </p><p>  for Jboss process [i.e,,REST conversion process(Object to XML, XML to Object) and etc]</p><p>  Can any one help me how can i enable the REST process logs and all other logs.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have added some tag in jboss-log4j.xml but i am not getting all the log.</p><p>   </p><p>   jboss-log4j.xml</p><p>   ---------------</p><p>   ...</p><p>   ...</p><p>   <category name="org.jboss.resteasy"></p><p>   <priority value="DEBUG"/></p><p>   </category></p><p>   </p><p>   <category name="javax.xml.bind"></p><p>      <priority value="DEBUG"/></p><p>   </category></p><p>   </p><p>   <category name="org.jboss.serial"></p><p>      <priority value="INFO"/></p><p>   </category></p><p>   </p><p>   <category name="javax.enterprise.resource.webcontainer.jsf"></p><p>     <priority value="INFO" class="org.jboss.logging.log4j.JDKLevel"/></p><p>   </category></p><p>   </p><p>   <category name="org.jgroups"></p><p>      <priority value="WARN"/></p><p>   </category></p><p>   </p><p>   <category name="org.quartz"></p><p>      <priority value="INFO"/></p><p>   </category></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <category name="com.sun"></p><p>      <priority value="INFO"/></p><p>   </category></p><p>   </p><p>   <category name="sun"></p><p>      <priority value="INFO"/></p><p>   </category></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <category name="javax.xml.bind"></p><p>      <priority value="INFO"/></p><p>   </category></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <category name="org.springframework"></p><p>     <priority value="WARN"/></p><p>   </category> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <category name="org.jboss.management"></p><p>      <priority value="INFO"/></p><p>   </category></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <category name="facelets.compiler"></p><p>      <priority value="WARN"/></p><p>   </category></p><p>   </p><p>   <category name="org.ajax4jsf.cache"></p><p>      <priority value="WARN"/></p><p>   </category></p><p>   </p><p>   <category name="org.rhq"></p><p>      <priority value="WARN"/></p><p>   </category></p><p>      </p><p>   <category name="org.jboss.seam"></p><p>      <priority value="WARN"/></p><p>   </category></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <category name="org.mc4j.ems"></p><p>      <priority value="WARN"/></p><p>   </category></p><p>   ...</p><p>   ...</p><p>   </p><p>   ServerLog:</p><p>   ----------</p><p>14:57:07,847 DEBUG [SynchronousDispatcher] PathInfo: /authenticate/test</p><p>14:57:07,848 FINE  [bind] Trying to locate ../login/jaxb.properties</p><p>14:57:07,850 FINE  [bind]   not found</p><p>14:57:07,852 FINE  [bind] Checking system property javax.xml.bind.JAXBContext</p><p>14:57:07,853 FINE  [bind]   not found</p><p>14:57:07,857 FINE  [bind] Checking META-INF/services</p><p>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</p><p>14:57:07,869 FINE  [bind] Trying to load com.sun.xml.bind.v2.ContextFactory</p><p>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</p><p>[TestRestImpl]  null   ***.***.**** [Login started].</p><p>[TestRestImpl]  null   ***.***.**** [Login finished].</p><p>14:57:08,170 FINE  [bind] Trying to locate ../login/jaxb.properties</p><p>14:57:08,170 FINE  [bind]   not found</p><p>14:57:08,171 FINE  [bind] Checking system property javax.xml.bind.JAXBContext</p><p>14:57:08,174 FINE  [bind]   not found</p><p>14:57:08,175 FINE  [bind] Checking META-INF/services</p><p>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</p><p>14:57:08,183 FINE  [bind] Trying to load com.sun.xml.bind.v2.ContextFactory</p><p>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</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/750613#750613">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>