{# The recent-log widget. Renders either the tail lines or a hint when JMRI_LOG_FILE isn't configured. The tail comes from the ``logs`` JSON service; the operator sees exactly what the service sees so a mismatch never surprises anyone. #} {% if log_path %}
Tailing {{ log_path }}
ยท last {{ log_lines|length }} of {{ log_tail_max }}
{% for line in log_lines %}{{ line }}
{% endfor %}
{% else %}
Log file is empty.
{% endif %} {% else %}
No log file configured. Set
JMRI_LOG_FILE=/path/to/jmri.log
before starting the server to enable file logging + this widget.