-
Add Additional Information to Your Exceptions
When Enterprise Library was called Microsoft Application Blocks, if you wanted to log an Exception, you would write (assuming “ex” is an Exception): ExceptionManager.Publish(ex) And if you wanted to log some extended properties you could do something like this: NameValueCollection customerInfo = new NameValueCollection(); customerInfo.Add(“name”,”scott”); customerInfo.Add(“email”,”blah@blah.com”); ExceptionManager.Publish(ex,customerInfo); Now that I am upgrading all legacy code […]