I recently started a project where we needed a high standard for handling exceptins, we needed a generic way so that all developers could handle errors the same way. I figured it was best to use existing technologies, so I started to look at the Microsoft way "Exception Management Application Block".

But I found the documentation very thin... and right now I have a few questions someone could perhaps answer?

1)How can I change the "source" name if I ONLY want my app to write to the eventlog? I want the SOURCE to be unique for my application! Not the default "ExceptionManagerInternalException"


2)What if I also want to log all exceptions to a file as well? What steps must I take then? Do I have to make a separate shared class called LogMail.Publish(ex), or can I make the default "ExceptionManager" class perform both things, eventlog and textfile?

I know the docs talk a lot about a custom publishers... what are they???


kind regards
Henrik