Raygun4Net 3.0Posted Jun 26, 2014 | 2 min. (341 words)
Today we have released version 3.0 of the Raygun4Net provider – a small assembly that sends exception logs to Raygun.io from any .Net application including ASP.Net, MVC, WPF, WinForms, WinRT, Windows Phone and Xamarin.
This release addresses a feature that a lot of people have been asking for recently which is a simple way to ignore all form fields, headers, cookies or server variable from the exception log. For those that don’t know, Raygun4Net 2.0 included a configuration setting called ignoreFormDataNames which could be set to a comma separated black-list of items that you don’t want to be sent to Raygun.io – such as passwords, api keys and card numbers.
The most important thing to be aware of in version 3.0 is that the ignoreFormDataNames config option has now been replaced by four separate parts. Unlike version 2.0, the option values are now case insensitive which makes it even easier to specify what you want ignore.
These 4 options give you finer grained control over what does and does not get sent to Raygun.io, and allowed us to extend this feature in the following ways:
Setting one of these new configuration settings to the wild card symbol * will indicate that all form fields, headers, cookies or server variables should be ignored and never sent to Raygun.io.
By putting the * symbol before, after or at both ends of a name that you want to ignore, you can create an ends-with, starts-with or contains condition respectively. The following example will prevent Raygun4Net from sending any form fields that end with “code” or start with “password” or include the word “key”.
ignoreFormFields="*code, password*, *key*"
I’d also like to point out that all methods marked as obsolete from the previous version have now been removed. Raygun4Net 3.0 is available right now from NuGet, and all the source code is available in GitHub.
If your .Net application doesn’t have exception tracking yet, try out the free 14 day trial of Raygun now. No credit card required.