<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Mark,<br>
    <br>
    I've built a simple "tail" command to follow the file log on the
    telnet console.<br>
    <br>
    Unfortunately -- with v2.1 -- the fflush() on the log file doesn't
    work as expected, the file contents will not be updated until I
    close the file.<br>
    <br>
    Is that issue solved with v3.x?<br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 08.01.2018 um 07:28 schrieb Mark
      Webb-Johnson:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0E44738A-77E6-4A53-892C-0CF5CFF693F4@webb-johnson.net">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      I’ve restructured the log commands a bit:
      <div class=""><br class="">
      </div>
      <div class="">
        <ul class="MailOutline">
          <li class="">The old "level <severity>” command has
            moved to "log level <severity>"<br class="">
            <br class="">
          </li>
          <li class="">A new “log file <path>” command has been
            added. For example “log file /sd/log.txt” will mean that
            anything that gets logged to the console will also get
            appended to /sd/log.txt as well, until reboot. You can use
            /sd (if SD CARD is working for you), or /store (but take
            care - that is system flash).<br class="">
            <br class="">
          </li>
          <li class="">You should be able to hook this in at the
            “sd.mounted” event script, to turn on logging to sd card on
            boot (again, if SD CARD is working for you).</li>
        </ul>
        <div><br class="">
        </div>
        <div>Enjoy, Mark</div>
        <div><br class="">
          <blockquote type="cite" class="">
            <div class=""> Branch: refs/heads/master</div>
            <div class="">
              <div class="">  Home:   <a
                  href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3"
                  class="" moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3</a><br
                  class="">
                 Commit: 6947670e33823dd68d4bf76b7872518fc8398264<br
                  class="">
                     <a
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/6947670e33823dd68d4bf76b7872518fc8398264"
                  class="" moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/6947670e33823dd68d4bf76b7872518fc8398264</a><br
                  class="">
                 Author: Mark Webb-Johnson <<a
                  href="mailto:mark@webb-johnson.net" class=""
                  moz-do-not-send="true">mark@webb-johnson.net</a>><br
                  class="">
                 Date:   2018-01-08 (Mon, 08 Jan 2018)<br class="">
                <br class="">
                 Changed paths:<br class="">
                   M vehicle/OVMS.V3/main/console_async.cpp<br class="">
                   M vehicle/OVMS.V3/main/ovms_command.cpp<br class="">
                   M vehicle/OVMS.V3/main/ovms_log.h<br class="">
                   M vehicle/OVMS.V3/main/ovms_main.cpp<br class="">
                <br class="">
                 Log Message:<br class="">
                 -----------<br class="">
                 Add support for "log file ..." to log to the specified
                vfs file<br class="">
              </div>
            </div>
          </blockquote>
          <br class="">
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
  </body>
</html>