what is perpose of Enterprise Logging block over .NET default Tracing?
Enterprise Library:
Logging applicaiton block allows you to simply configure and log any type of data(Events, Exceptions, Events data or any other data you wish to log from your application). It allows to simply configure and log to desired location as
Log file
Email (configure to send an email msg)
Database( using provided script it is quite easier to deploy the database and start logging)
Windows Events
and custom locations
In simple words 'It is readily available application block that allows a developer to customise and configure to Log valuable data to desired locations with simple configurations.
.NET Default Trace
It is quite feasible to utilise available .NET Trace methods with properties to log data. But when it comes to logging data other than
Windows Events it demands more plumbling. You got to write your code to log data into desired locations such as Database / Email / Log files.
Being said the above using ASP.NET HealthMonitoring configuration it is feasible to log ASP.NET web application events (to monitor various events of web application) as explained by Chris Pels in this video tutorial
Enterprise Library application blocks are reusable software components to meet day to day application requirements. Even though it is feasible to utilise .NET Default Tracing, you got to implement lot more work flow when you want to log
information other than windows events.
sukumarraju
All-Star
17297 Points
3052 Posts
Re: .NET Default Trace vs Enterprise Logging Blocks
Feb 07, 2010 08:33 PM|LINK
Enterprise Library:
Logging applicaiton block allows you to simply configure and log any type of data(Events, Exceptions, Events data or any other data you wish to log from your application). It allows to simply configure and log to desired location as
In simple words 'It is readily available application block that allows a developer to customise and configure to Log valuable data to desired locations with simple configurations.
.NET Default Trace
It is quite feasible to utilise available .NET Trace methods with properties to log data. But when it comes to logging data other than Windows Events it demands more plumbling. You got to write your code to log data into desired locations such as Database / Email / Log files.
Being said the above using ASP.NET HealthMonitoring configuration it is feasible to log ASP.NET web application events (to monitor various events of web application) as explained by Chris Pels in this video tutorial
http://www.asp.net/learn/videos/video-195.aspx
Conclusion:-
Enterprise Library application blocks are reusable software components to meet day to day application requirements. Even though it is feasible to utilise .NET Default Tracing, you got to implement lot more work flow when you want to log information other than windows events.
Application Architecture Guide 2.0
My Blog
Twitter