Using Enterprise Library 3.1, I have a logger that, once it reaches its "rollSizeKB" refuses to overwrite the log file. What am I missing?
<listeners>
<add formatter="Text Formatter"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
rollSizeKB="1"
rollInterval="None"
rollFileExistsBehavior="Overwrite"
name="Formatted EventLog TraceListener"
fileName="logfile.log"/>
</listeners>
For my testing purposes, I have the rollSizeKB purposely small. Once logfile.log hits 1KB, it stops writing to the file and will not overwrite it. What am I missing?