views:

68

answers:

4

Is there any logger to asp.net like the System.ServiceModel.MessageLogging used in WCF?

+2  A: 

You could use log4net for this... log4net Website

BG100
Yes, log4net is very commonly used in .NET because of its flexibility and unobtrusiveness.
Daniel Dyson
+1  A: 

Not sure what you are actually asking for. There is ASP.NET tracing and trace.axd handler to browsing traces.

Ladislav Mrnka
+2  A: 

There is health monitoring: http://msdn.microsoft.com/en-us/library/ff650305.aspx. It has a bunch of predefined events, plus you can create your own custom events for tracking purposes.

Brian
I actually need to log all requests and responses as is done in WCF, but the Health Monitoring is help me anywaytanks everybody!
Adriano Zawadzki
The Health Monitoring system is your best pick here, because it is the only system that directly supports getting information on a per request basis (through the `WebRequestEvent` class).
Steven
The .NET framework is integrated with it too; it will log key ASP.NET framework events that occur within the system too. It's pretty powerful.
Brian
+1  A: 

After having used it myself, I'd like to suggest ELMAH:

ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment.

Shogun