Solved

Custom source name in the windows event log

Posted on 2008-10-29
4
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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