I m using Microsoft Enterprise Library 3.1 for Exception Handling in asp.net, the erors are stored in Event Viewer of the system .
Instead of Event Viewer I need to store these errors in a log File using Enterprise Library.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Dear 2:30, You paste the following code inside configuration section at app.config or web.config file
Application log can be logged into applog.log file using following statement
Application exception can be logged into Exception.log file using following statement
Note: You can find the Logger class in Microsoft.Practices.EnterpriseLibrary.Logging;
AppLog.log and Exception.log file will be created in bin folder automatically.