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
Solved

Custom source name in the windows event log

Posted on 2008-10-29
4
403 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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

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…
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 …
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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 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