Solved

Custom source name in the windows event log

Posted on 2008-10-29
4
399 Views
Last Modified: 2013-11-08
I'm using enterprise library's 4.1 Exception & Logging Application Blocks, how can i get a custom source name in the windows event log. When ever i am logging an error in windows event log , it gives the source name as Enterprise Library Logging.If i change the source name the the entry never appears? Any help appreciated!

Just to add some more info, all i'm doing is publishing a caught exception through the exception handling block as follows, where "ErrorPolicy" is the policy i've defined in the Enterprise Library Configuration tool.

Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(exception, "ErrorPolicy");

If you need further details of the configuration entries then i can publish!
0
Comment
Question by:Heathcliffej
  • 2
4 Comments
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22950841
have a look at this sample the author has shown how to change the source
http://articles.techrepublic.com.com/5100-10878_11-5055434.html

HTH - Ragi
0
 

Author Comment

by:Heathcliffej
ID: 22974776
Thanks for the response!

I've read through the article but it was posted in Aug 2003 & its for a much earlier build of enterprise library?!

Currently the 4.1 library uses the Enterprise Library Configuration tool to set the exception and logging policies & i'm trying to get those entries correct to change the source name?
H
0
 

Accepted Solution

by:
Heathcliffej earned 0 total points
ID: 23201692
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now