text: It’s we can
  use Microsoft logging application blocks to log messages and activities.
  You can log your errors or debug messages to the following sources using logging application blocks:
  I have been writing and recording videos for architectures. I have uploaded some sample videos on Design Patterns, UML, and function points
  at. You can visit
  and download the complete architecture interview questions PDF which covers SOA, UML, Design Patterns, Togaf, OOPs, etc.
  You can download my 500 .NET FAQ questionnaire eBook from.
  Create a new project with a simple button on an ASPX page. Let’s name this button btnlogger. What we will do is, when anyone clicks on this button,
  we will log an error message in the event log.
  btnlogger
  Download Enterprise Library 4.0 from.
  Once you install it, you should see the same in programs – Microsoft Patterns and Practices. Click on Open and browse to your web.config file and click the Open button.
  All your logging facility is stored on the web.config file. Now right click on the tree, click New, and click the Logging Application block menu.
  By default, the logging utility logs to event logs. So you will see in the trace listeners an event log trace listener already added. Click on the event log trace
  listeners and specify the machine name. Currently my machine name is HP.
  Now that we have defined the necessary configuration using the logging enterprise tool, it’s time to call the same in the code. So we add the Enterprise logging application DLL,
  add the logging namespace, create an object of the logentry object, and finally log the message using the logger DLL.
  logentry
  Now if you run the program and click the button, you should see the message logged in the event viewer. To view event viewer, click on Start, Run, and type eventv
  Math Primers for Programmers