Enterprise Library

Topics: Enterprise Library Core
Sep 6 at 5:53 PM
I have used the Enterprise Library 5.0 to create the daily log file. The log is created but its writing log in two files instead of one file.

Here is name of first file name: Policy.txt

Second file name: 28afdf13-db29-453c-8a85-2684e9895353Policy.txt

The log file is not rolling instead its creating new file.

Here is log configuration.

<add name="Policy Flat File" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" fileName="C:\LOGS\Policy.txt" header="" footer="" formatter="MAO-Privacy-Policy" rollFileExistsBehavior="Increment" rollInterval="Midnight" timeStampPattern="yyyy-MM-dd" rollSizeKB="10000" maxArchivedFiles="30" />

Please help to fix this issue.

-Ashish