<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name ="errorSubSystem" type ="Jason.EnterpriseErrorHandler.ConfigurationHandler.ErrorSubSystem,
EnterpriseErrorHandler"/>
</configSections>
<errorSubSystem>
<!--
The following Policy will Format all Unhandled Exceptions Verbosly, and log them to a text file.
Filename, is the path and filename of any desired log file.
-->
<add Exception="System.Exception">
<Formatter type="Jason.EnterpriseErrorHandler.TextFormatter, EnterpriseErrorHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
<Handler type="Jason.EnterpriseErrorHandler.ErrorTextWriter, EnterpriseErrorHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
Filename ="C:\\Logfile.txt"/>
</add>
<!--
The following Policy will Format all Unhandled ArgumentExceptions Verbosly,
and log it to UserMessageBox With okay button.
<add Exception="System.ArgumentException">
<Formatter type="Jason.EnterpriseErrorHandler.TextFormatter, EnterpriseErrorHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
<Handler type="Jason.EnterpriseErrorHandler.ErrorMsgBxWriter, EnterpriseErrorHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
</add>
-->
<!--
Clear will remove all existing policies from the policy collection.
<clear/>
-->
<!--
The following Policy will Format all Unhandled ArgumentExceptions breifly,
and log it to UserMessageBox With okay button.
-->
<add Exception="System.ArgumentException">
<Formatter type="Jason.EnterpriseErrorHandler.UserFormatter, EnterpriseErrorHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
<Handler type="Jason.EnterpriseErrorHandler.ErrorMsgBxWriter, EnterpriseErrorHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
</add>
<!--
The following Policy will Format all Unhandled ArgumentExceptions Verbosly,
and log it into the EventHandler under the ErrorSubSystem Node, with a Informational icon.
EventNode is an arbtray String, but defaulted to the ApplicationNode.
EventType is is a enumeration which can take the values FailureAudit, Warning, SuccessAudit, Information, Error
-->
<add Exception="System.ArgumentException">
<Formatter type="Jason.EnterpriseErrorHandler.TextFormatter, EnterpriseErrorHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
<Handler type="Jason.EnterpriseErrorHandler.ErrorEventWriter, EnterpriseErrorHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
EventNode ="ErrorSubSystem" EventType="Information"/>
<!-- EventTypes .FailureAudit .Warning .SuccessAudit .Information .Error -->
</add>
</errorSubSystem>
</configuration>