[logback-user] Programmatically create loggers : hibernate, spring ....
BAKHTI Mohammed
onlymed at hotmail.com
Tue Aug 30 22:47:30 CEST 2011
Hello again :)
Can i programmatically create loggers for spring , hibernate and other frameworks? means something like :
logfactory.getlogger("org.springframework");
and then set the apropriate level ?
Is this possible? because i tried it but don't really think it works
Thanks for help
Date: Tue, 30 Aug 2011 13:49:59 -0300
From: daniel.listas at xxx.com.br
To: logback-user at qos.ch
Subject: Re: [logback-user] Getting the error code to print using LogBack.
You must set Tomcat
(instead of your application) to log using Logback, see
http://logback.qos.ch/access.html
Regards,
Daniel Serodio
Vivek M.V wrote:
Hi David,
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.
Thanks!
----- Original Message -----
From:
David Roussel
To: logback
users list
Sent: Sunday, August 28, 2011
1:58
PM
Subject: Re: [logback-user]
Getting the
error code to print using LogBack.
I think you want logback-access which is used to log webserver
access
logs.
On 26 Aug 2011, at 05:07, "Vivek M.V" <vivek.mv at enzentech.com>
wrote:
Hi ,
I'm trying to implement
the SLF4J
+LogBack logging solution to implement logging in my application .
I've
modified the Pattern Expression in the logback.xml as
below.
<Pattern>%d{dd MMM
yyyy HH:mm:ss.SSS} %logger{36} %M-%msg%n</Pattern>
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?
Thanks.
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.
_______________________________________________
Logback-user
mailing list
Logback-user at qos.ch
http://qos.ch/mailman/listinfo/logback-user
_______________________________________________
Logback-user
mailing
list
Logback-user at qos.ch
http://qos.ch/mailman/listinfo/logback-user
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.
_______________________________________________
Logback-user mailing list
Logback-user at qos.ch
http://qos.ch/mailman/listinfo/logback-user
_______________________________________________
Logback-user mailing list
Logback-user at qos.ch
http://qos.ch/mailman/listinfo/logback-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110830/6dc17c64/attachment-0001.html>
More information about the Logback-user
mailing list