?
Solved

Custom source name in the windows event log

Posted on 2008-10-29
4
Medium Priority
?
408 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

801 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