Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I assume that you have a configuration like this for the event log:</p> <pre><code> &lt;add name="Event Log Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" source="Enterprise Library Logging" formatter="Text Formatter" log="" machineName="." traceOutputOptions="None" /&gt; </code></pre> <p>Just replace that configuration with something for a flat file. E.g.:</p> <pre><code> &lt;add name="Flat File Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" fileName="trace.log" /&gt; </code></pre> <p>And then change your categories to use the new "Flat File Trace Listener". If you aren't using the latest version then you would need to change the version above from 5.0.505.0 to 5.0.414.0. </p> <p>Also, you can use the configuration tool <code>EntLibConfig.exe</code> to simplify making these changes without worrying about the XML involved. Or use the config tool to generate the initial XML and then you can manually tweak the XML within your configuration file.</p> <p>Or, as another alternative, you can use the <a href="http://msdn.microsoft.com/en-us/library/ff664363%28v=pandp.50%29.aspx" rel="nofollow">Fluent Configuration API</a> to configure logging using code instead of configuration.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload