Revision 1.1
WebSwitch™ Users Manual
Appendix E: Log Files (Model XRDI-WS3P only)
WebSwitch Plus™ logs information to two different log files; log.txt and syslog.txt. Both log files are text
files and are stored in non-volatile memory; this data will not be lost due to power failure. The log files
are stored in circular buffers which write from the beginning of the allocated memory space to the end,
and then repeat from the beginning (over-writing the original data). The non-volatile memory is divided
into 4K byte sectors. Each time data gets erased to make room for new data, a full sector (4K bytes) is
erased at one time.
Data log file: log.txt
This log file is user-configurable and stores real-world data such as temperatures and events such as
relay contact changes. It can be up to 512K bytes long and is stored using a comma separated value
formating scheme.
Outlet 1 and Outlet 2, Input 1 and Input 2, Sensor 1, Sensor 2, and Sensor 3 will only be displayed if
they are selected in the log setup tab. This file is read by requesting the log.txt file from WebSwitch™.
For example, using the default IP address the following command would be used to request the log file:
http://192.168.1.2/log.txt
File format:
MM/DD/YYYY HH:MM:SS, Outlet 1, Outlet 2, Input 1, Input 2, Sensor 1, Sensor 2, Sensor 3, Source
Date and time of event:
MM - Month (1-12)
DD – Day (1-31)
YYYY – Year (1970 - 2106)
HH – Hour in 24 hour time (0 -23)
MM – Minutes (0-59)
SS – Seconds (0-59)
Example:
Date Time,O1,O2,I1,I2,S1,S2,S3,Source
03/22/2010 12:19:09,1,0,0,0,079.0,xxx.x,xxx.x,Outlet01:(on)
03/22/2010 12:30:00,1,1,0,0,078.5,xxx.x,xxx.x. XmlReq: (192.168.1.29 R)
03/22/2010 12:30:00,1,0,0,0,078.5,xxx.x,xxx.x. XmlReq: (192.168.1.29 W)
The file can then be saved using the 'Save As...' option under the 'File' menu of the web browser. If the
TCP port has been changed (not port 80), the port will be required to read the file. For example, using
the default IP address, and port 8000, the log file would be read as follows:
http://192.168.1.2:8000/log.txt
To erase the file, use the following parameter in the address bar:
http://192.168.1.2/log.txt?erase=1
After erasing the file, it might be necessary to refresh the page.
Note: If the control password is enabled in the setup pages, the password (control password) will be
required to access this file.
Xytronix Research & Design, Inc.
92