Add info about HttpRequest/Context

View: New views
1 Messages — Rating Filter:   Alert me  

Add info about HttpRequest/Context

by dnagir :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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