logfile ======= .. py:module:: logfile .. autoapi-nested-parse:: Small persistent log that keeps only the most recent lines. USB output during boot is usually lost because the host has not reconnected yet, so boot diagnostics go to flash as well. Classes ------- .. autoapisummary:: logfile.LogFile Module Contents --------------- .. py:class:: LogFile(path, clock, max_lines=40, echo=print) Log file on flash that keeps the last `max_lines` lines. .. py:attribute:: path .. py:attribute:: clock .. py:attribute:: max_lines :value: 40 .. py:attribute:: echo .. py:method:: lines() Return the stored lines, or an empty list if there is no log.