Is there a way to always have the timestamppattern applied to my current log files?
Here is an example of my log file listener from app.config
<add name="Exception" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
fileName="%APPDATA%\MyProgram\Logs\exception.log" formatter="PrismText"
rollFileExistsBehavior="Increment" rollInterval="Day" timeStampPattern="yyyy-MM-dd" rollSizeKB="3000"
maxArchivedFiles="10" />
Now once I hit the max size or date change, it renames the logs, but is there a way I can get the initial log file to show up with the TimeStamp Pattern?
I get this in my logs folder:
exception.log <-- Current log
exception.2011-12-22.1.log
exception.2011.12.22.2.log
I'd like this:
exception.2011-12-22.log (or exception.2011-12-22.1.log) <-- Current Log
exception.2011.12.22.2.log
Its not a huge deal as I can just look at the date modified/created, but it would be nice if its a quick fix.