Appendix D: Log Files
WebRelay-10 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 under the Logging setup tab, and stores real-world data such as
temperatures and events such as relay state changes (see section 2.4.6 Logging Tab for more
information). It can be up to 3072K bytes long and is stored using a comma separated value formatting
scheme.
Digital Inputs, Relays, Analog Inputs, and Sensors will only be displayed if they are selected in the
Logging setup tab. The file is read by requesting the log.txt file from WebRelay-10 Plus™. 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, Input 1, Input 2, Relay 1, Relay 2, ..., Relay 10,
Sensor 1, Sensor 2 ... Sensor 8, Source: State
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,I1,I2,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,S1,S2,S3,Source
11/15/2010 11:00:46,0,1,1,1,1,0,1,0,1,0,1,1,078.0,076.4,082.7,Input02:(on)
11/15/2010 11:00:48,0,0,1,1,1,0,1,0,1,0,1,1,078.0,076.4,082.7,Input02:(off)
11/15/2010 11:01:08,0,0,0,0,0,0,1,0,1,0,1,1,078.0,076.5,082.9,Relay03:(off)
11/15/2010 11:02:04,0,0,0,0,0,1,1,0,1,0,1,1,077.7,076.4,083.4,Relay04:(on)
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.
WebRelay-10 Plus™ Users Manual
Page 27
Need help?
Do you have a question about the WEBRelay-10+ and is the answer not in the manual?