Log Files

The WinCC OA log files are stored in the <proj_path>/log/directory. For displaying WinCC OA log files use the Log Viewer.

Log files exist for all managers and drivers. The specific managers write error messages in the corresponding log files. Additionally the log directory contents the general log file "PVSS_II.log" as well as the "pmon.<hostname>.log" for the process monitor (PMON).

Basically, PMON protocols all executed processes and writes the information, warnings and error messages into the "PVSS_II.log" file. PMON writes into the "pmon_<hostname>.log"file (e.g. pmon.eiwrk028). This file stores all project-relevant information like start and stop. The debug outputs from WCCILpmon (stderr and stdout) are written into the "WCCILpmon_<hostname>.log"file.

PMON is responsible for monitoring the file size of the "PVSS_II.log" and "pmon_<hostname>.log" files. With the maxLogFileSize config entry in the [general] section the maximum file size can be specified (default = 10 MB, 0 = no limit). If the file exceeds this size, it will be renamed to "PVSS_II.log.bak" and a new file is created. An already existing "PVSS_II.log.bak" file will be overwritten. The log files of the specific managers are also monitored. The maximum size can be also specified via the maxLogFileSize config entry.

Note:
WinCC OA supports JSON-formatted logging instead of the standard WinCC OA format. This feature helps to create logs that can be then easily parsed by third-party tools.

To enable the JSON logging format, the system variable WCCOA_LOG_FORMAT must be set to JSON:

 set WCCOA_LOG_FORMAT=JSON

In the following table you can find detailed information about the specific log files.