<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17080" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana size=2>Hi David,</FONT></DIV>
<DIV><FONT face=Verdana size=2>Thanks for the reply. ! However, this is the 
first time I have ever used logback , could you please elucidate in detail on 
how I should go about it or point me to a link with an example.</FONT></DIV>
<DIV><FONT face=Verdana size=2>Thanks!</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=nabble@diroussel.xsmail.com 
  href="mailto:nabble@diroussel.xsmail.com">David Roussel</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=logback-user@qos.ch 
  href="mailto:logback-user@qos.ch">logback users list</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, August 28, 2011 1:58 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [logback-user] Getting the 
  error code to print using LogBack.</DIV>
  <DIV><BR></DIV>
  <DIV>I think you want logback-access which is used to log webserver access 
  logs.&nbsp;<BR><BR>On 26 Aug 2011, at 05:07, "Vivek M.V" &lt;<A 
  href="mailto:vivek.mv@enzentech.com">vivek.mv@enzentech.com</A>&gt; 
  wrote:<BR><BR></DIV>
  <DIV></DIV>
  <BLOCKQUOTE type="cite">
    <DIV>
    <DIV><FONT face=Verdana size=2>Hi ,<BR>I'm trying to implement the SLF4J 
    +LogBack logging solution to implement logging in my application .<BR>I've 
    modified the Pattern Expression in the logback.xml as 
below.<BR></FONT></DIV>
    <DIV><FONT face=Verdana size=2>&nbsp;&lt;Pattern&gt;%d{dd MMM 
    yyyy&nbsp;HH:mm:ss.SSS}&nbsp;%logger{36}&nbsp;%M-%msg%n&lt;/Pattern&gt;</FONT></DIV>
    <DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Verdana size=2><BR>And its working fine . However I'd like 
    to print the 'error code ' as well in my log say 404 or 500 as well . Any 
    ideas on how I should be modifying my pattern expression for 
    this?<BR>Thanks.</FONT></DIV><FONT face=Verdana size=2></FONT><BR><PRE><FONT style="FONT-SIZE: 9pt" face=Arial>This e-mail, and any attachments are strictly confidential and may also contain legally privileged information. It is intended for the addressee(s) only. If you are not the intended recipient, please do not print, copy, store or act in reliance on the e-mail or any of its attachments. Instead, please notify the sender immediately and then delete the e-mail and any attachments.

Unless expressly stated to the contrary, the views expressed in this e-mail are not necessarily the views of Enzen Technologies (P) Limited or any of its subsidiaries or affiliates (Group Companies), and the Group Companies, their directors, officers and employees makes no representation and accept no liability for the accuracy or completeness of this e-mail. You are responsible for maintaining your own virus protection and the Group Companies do not accept any liability for viruses. Enzen reserves the right to monitor and review the content of all messa
 ges sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Enzen e-mail system.</FONT>

</PRE><BR></DIV></BLOCKQUOTE>
  <BLOCKQUOTE type="cite">
    <DIV><SPAN>_______________________________________________</SPAN><BR><SPAN>Logback-user 
    mailing list</SPAN><BR><SPAN><A 
    href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</A></SPAN><BR><SPAN><A 
    href="http://qos.ch/mailman/listinfo/logback-user">http://qos.ch/mailman/listinfo/logback-user</A></SPAN><BR></DIV></BLOCKQUOTE>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Logback-user mailing 
  list<BR>Logback-user@qos.ch<BR>http://qos.ch/mailman/listinfo/logback-user<BR></BLOCKQUOTE>
<br><pre><font Face='Arial' style='font-size:9pt'>This e-mail, and any attachments are strictly confidential and may also contain legally privileged information. It is intended for the addressee(s) only. If you are not the intended recipient, please do not print, copy, store or act in reliance on the e-mail or any of its attachments. Instead, please notify the sender immediately and then delete the e-mail and any attachments.

Unless expressly stated to the contrary, the views expressed in this e-mail are not necessarily the views of Enzen Technologies (P) Limited or any of its subsidiaries or affiliates (Group Companies), and the Group Companies, their directors, officers and employees makes no representation and accept no liability for the accuracy or completeness of this e-mail. You are responsible for maintaining your own virus protection and the Group Companies do not accept any liability for viruses. Enzen reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Enzen e-mail system.</font>

</pre><br></BODY></HTML>