Link to home
Start Free TrialLog in
Avatar of Heathcliffej
HeathcliffejFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Custom source name in the windows event log

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!
Avatar of Anurag Thakur
Anurag Thakur
Flag of India image

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
Avatar of Heathcliffej

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Heathcliffej
Heathcliffej
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial