1

我的项目中使用了 Enterprise Library Logging,它运行良好,但我只需要随时保存最后一个条目。有什么配置吗?

下面是我目前的配置。

 <add name="WorkflowListener" formatter="Workflow Formatter" fileName="..\@data\logs\Workflow_log.txt" timeStampPattern="yyyy-MM-dd-HH-mm-ss" rollFileExistsBehavior="Overwrite" rollInterval="None" header="" footer="" traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
4

0 回答 0