You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Dmitiry Nagirnyak <dn...@gmail.com> on 2009/10/28 01:35:26 UTC

Add info about HttpRequest/Context

Hi,

In the ASP.NET app I use Application_Error to log unhanded exceptions. I
usually use log.Fatal("bla", exception).
But I want the log to include the information about the request (URL, HTTP
headers, source IP and so on).

So the question is if log4net has out of the box functionality for that with
some kind of renderers or similar?

Or is it the only way to do it is to assemble all the info I want to log
into a string manually and log it?

Cheers,
Dmitriy.
http://dnagir.blogspot.com