title: Enterprise Library Exception Handling 6.0 XML Logging not writing File
body: <p>I'm trying to setup the Enterprise Library Exception Handling 6.0 to log errors using the XmlExceptionFormatter in the Enterprise Library Logging Application Block. I'm not receiving any errors, and I can get the Logging to work by itself.</p>
  
  <p>Here is my App.config from the console application I'm testing from:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="loggingConfiguration" 
               type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" /&gt;
      &lt;section name="exceptionHandling" 
               type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" /&gt;
    &lt;/configSections&gt;
  
    &lt;loggingConfiguration name="Logging Application Block" 
                          tracingEnabled="false" 
                          defaultCategory="General" 
                          logWarningsWhenNoCategoriesMatch="true"&gt;
      &lt;listeners&gt;
        &lt;add name="XML Trace Listener" 
             type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.XmlTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
             listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.XmlTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
             fileName="C:\logs\TestDriver-XML.log" 
             traceOutputOptions="None" /&gt;
      &lt;/listeners&gt;
      &lt;categorySources&gt;
        &lt;add switchValue="All" name="General"&gt;
          &lt;listeners&gt;
            &lt;add name="XML Trace Listener" /&gt;
          &lt;/listeners&gt;
        &lt;/add&gt;
      &lt;/categorySources&gt;
      &lt;specialSources&gt;
        &lt;allEvents switchValue="All" name="All Events"&gt;
          &lt;listeners&gt;
            &lt;add name="XML Trace Listener" /&gt;
          &lt;/listeners&gt;
        &lt;/allEvents&gt;
        &lt;notProcessed switchValue="All" name="Unprocessed Category"&gt;
          &lt;listeners&gt;
            &lt;add name="XML Trace Listener" /&gt;
          &lt;/listeners&gt;
        &lt;/notProcessed&gt;
        &lt;errors switchValue="All" name="Logging Errors &amp;amp; Warnings"&gt;
          &lt;listeners&gt;
            &lt;add name="XML Trace Listener" /&gt;
          &lt;/listeners&gt;
        &lt;/errors&gt;
      &lt;/specialSources&gt;
    &lt;/loggingConfiguration&gt;
  
    &lt;exceptionHandling&gt;
      &lt;exceptionPolicies&gt;
        &lt;add name="Policy"&gt;
          &lt;exceptionTypes&gt;
            &lt;add name="All Exceptions" 
                 type="System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                 postHandlingAction="None"&gt;
              &lt;exceptionHandlers&gt;
                &lt;add name="Logging Exception Handler" 
                     type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                     logCategory="General" 
                     eventId="100" 
                     severity="Error" 
                     title="Enterprise Library Exception Handling"
                     formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.XmlExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                     priority="0" /&gt;
              &lt;/exceptionHandlers&gt;
            &lt;/add&gt;
          &lt;/exceptionTypes&gt;
        &lt;/add&gt;
      &lt;/exceptionPolicies&gt;
    &lt;/exceptionHandling&gt;
  
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
    &lt;/startup&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>My test is:</p>
  
  <pre><code>class Program
  {
      public static void Main(string[] args)
      {
          TestExceptionManager();
  
          Console.ReadLine();
      }
  
      private static void TestExceptionManager()
      {
          ExceptionManager exceptionManager = new ExceptionManager();
          exceptionManager.Process(MyExceptionCode, "Policy");
      }
  
      private static void MyExceptionCode()
      {
          throw new Exception("A basic Exception");
      }
  }
  </code></pre>
  
  <p>Any suggestions to get this to log correctly?</p>