Download ScadaWorks Technical Reference Manual

Transcript
Section V Using Log Files -- Data and Alarm Logging 83
Log File Setup Tab
File Name
Specifies the name (with an optional path) of the file to use for logging. The logging system will concatenate file
extensions as needed. The extension ".lg1" is used for the file that is currently being updated. The extension ".lg2" is
used for the file when it is archived.
If a log file extension such as ".csv" is specified, and File Archiving enable is unchecked, then the system will not use
the naming convention above and will just continue to write to one file with the extension specified.
If File Archive Enable is checked and an extension is specified such as ".csv" then it will write to <Logfile
Name>.csv1 then archive to <Logfile Name>.csv2.
Subfolders may be used here by specifying a path in front of the file name ie:
\Logs\Logfile.<ext>
Max File Size
Sets the maximum size (in Kbytes, 1 Kbyte = 1024 bytes) of the "update" (.lg1) log file. The logging system uses two
files, the "update" file with an ".lg1" file extension and the "archive" file, with an ".lg2" file extension. When the
update file reaches the maximum size, it is archived and renamed to the .lg2 file. Logging resumes with an empty
update .lg1 file. Thus, the file system must have room to accommodate twice the specified maximum size.
Log Buffer Size
Sets the size of the buffer that is used for sending log entries to the file system. Due to the inherent time required by
the system to update the file system, buffering is required. Applications that perform many file operations and log large
data blocks at a frequent rate may need to increase this buffer. The symptom of this buffer being too small is that log
entries (or characters) will be missing from the log file.
A "W-LOG-Log buffer write overrun occurred" error will be posted to the system.log file.
NOTE: Increasing this buffer size uses up memory resources in the system, so it is advisable to keep it as small as
possible.
ICL4300, Etherlogic, and ScadaFlex controllers set this parameter in Bytes. Pinnacle and later controllers set this
parameter in KBytes.
Date Format
The Date Format specifies the format of any date stamps that are inserted into the log messages (Event or Alarm)
created for the log file. The components of the format are:



m - month digits
d - day digits
y - year digits
Time Format
The Time Format specifies the format of any time stamps that are inserted into the log messages (Event or Alarm)
created for the log file. The components of the format are:



h - hour digits
m - minute digits
s - seconds digits