<td>Entry type </td><td>1 byte </td><td>See <aclass="el"href="_log_8h.html#a34112fbd78128ae58dc7801690dfa6e0">LogEntryEnum</a></td></tr>
<tr>
<td>Data length </td><td>1 byte </td><td>This is the length of the appended data. </td></tr>
<tr>
<td>Timestamp </td><td>2 bytes </td><td>This is the current systick value. </td></tr>
<tr>
<td>Data </td><td><em>Data length</em> bytes </td><td>It is also possible that no data is appended, then the <code>Data length</code> field is zero. </td></tr>
<li><code>OFF</code>, which means that nothing is logged.</li>
<li><code>LIVE</code>, which means that log events are written directly to the terminal (untested).</li>
<li><code>MEMORY</code>, where the log events are written to SRAM.</li>
</ul>
<dlclass="section note"><dt>Note</dt><dd>If there is not enough log memory, the log mode is automatically set to <code>OFF</code>.</dd></dl>
<dlclass="section warning"><dt>Warning</dt><dd>Since the <code>MEMORY</code> log mode writes to SRAM, the log memory is cleared by power off or restarting the Chameleon.</dd></dl>
<h1>Related Commands, Button event and LED functions </h1>
<p>There are various commands to configure the log functionality. See <aclass="el"href="_page__command_line.html#Anchor_LogFunctions">Page Command Line</a>. Equivalently to the <code>LOGSTORE</code> command, the buttons are configurable to <code>STORE_LOG</code>, which does the same. Also, there exists a <code>LOGMEM_FULL</code> function for the LEDs, which lights up the LED if the SRAM log memory is full. See also the Pages <aclass="el"href="_page__buttons.html">Buttons</a> and <aclass="el"href="_page__l_e_d.html">LED functionality</a>. The 'chamlog' Python script in the project (Software folder) automatizes the process of downloading the binary log data, e.g., sending the following command under Windows with a ChameleonMini connected on port COM6 results in downloading the binary log file, clearing the log memory, and setting the log mode to <code>MEMORY</code>: <code>chamlog -p COM6 -c -m MEMORY -v</code>. Repeatedly executing this command always outputs the recently logged commands in user-readable form. Make sure that no other program, e.g., terminal software, is blocking the serial port. </p>