<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hello again :) <br><br>Can i programmatically create loggers for spring , hibernate and other frameworks? means something like : <br><br>logfactory.getlogger("org.springframework");<br>and then set the apropriate level ?<br><br>Is this possible? because i tried it but don't really think it works <br><br>Thanks for help <br><br><div><hr id="stopSpelling">Date: Tue, 30 Aug 2011 13:49:59 -0300<br>From: daniel.listas@xxx.com.br<br>To: logback-user@qos.ch<br>Subject: Re: [logback-user] Getting the error code to print using LogBack.<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">

You must set Tomcat 
(instead of your application) to log using Logback, see 
<a class="ecxmoz-txt-link-freetext" href="http://logback.qos.ch/access.html" target="_blank">http://logback.qos.ch/access.html</a><br>
<br>
Regards,<br>
Daniel Serodio<br>
<br>
Vivek M.V wrote:
<blockquote cite="mid:1BB68E5834DF495F936BF5DD37CFF8A5@enzenbangalore.com">
  

  

  <style>
</style>


  <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>
  
  <blockquote><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>&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><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><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" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a></span><br></div></blockquote>
  
  <BR><hr>

  _______________________________________________<br>Logback-user 
mailing 
  list<br><a class="ecxmoz-txt-link-abbreviated" href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br><a class="ecxmoz-txt-link-freetext" href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br></blockquote>

  <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>


  <pre>_______________________________________________
Logback-user mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a>
<a class="ecxmoz-txt-link-freetext" href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a>
</pre>
</blockquote>
<br>_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user</div>                                               </div></body>
</html>