[logback-user] Log method name and line number only for exceptions

lopardo . lopardo2003 at hotmail.com
Wed Jul 4 17:21:49 CEST 2012


Hi. Is it possible to log method name and line number only for exceptions? Or set a different pattern, but only for exceptions?

That way I could log more info, even if it's slower to process, for some exceptions.

Thanks.

Regards,
lopardo.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120704/ec8f08cd/attachment.html>


More information about the Logback-user mailing list