By default,
there is no limit to the size of tracelog.dat in the release
version of CitectSCADA v7.0.
The workaround
is to edit the file citect32.exe.config, found in Citect's bin
directory.
The section
below:
<listeners>
<!--maxFileSize="2048"
archiveFile="false"-->
<add name="Trace File Destination"
type="Citect.Platform.Logging.TraceListeners.LogFileTraceListener, Citect.Platform.Logging.TraceListeners, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799"
listenerDataType="Citect.Platform.Logging.TraceListeners.LogFileTraceListenerData, Citect.Platform.Logging.TraceListeners, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799"
fileName ="%windir%\tracelog.dat"
formatter="TSV Formatter"
/>
</listeners>
Should be changed to read:
<listeners>
<add name="Trace File Destination"
type="Citect.Platform.Logging.TraceListeners.LogFileTraceListener, Citect.Platform.Logging.TraceListeners, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799"
listenerDataType="Citect.Platform.Logging.TraceListeners.LogFileTraceListenerData, Citect.Platform.Logging.TraceListeners, Version=1.0.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799"
fileName ="%windir%\tracelog.dat"
formatter="TSV Formatter"
maxFileSize="2048"
""
archiveFile="false"
""
/>
</listeners>
The important parameter here is maxFileSize, which limits the size of tracelog.dat to the specified number of kilobytes. This change, then, will limit tracelog.dat to 2048kB.
Future versions of CitectSCADA will set this limit by default.
|