{% extends "console/base.html" %} {% load ostium_ui %} {% block title %}日志{% endblock %} {% block breadcrumb %}日志{% endblock %} {% block page_header %}
{% icon "terminal" "w-3.5 h-3.5" %} Diagnostics

日志

最多读取 2 MiB 尾部内容。敏感值已在诊断包中脱敏;此页面只做本地只读展示。

{% icon "download" %} 下载当前日志
{% endblock %} {% block content %}
{{ path }} {{ lines|length }} 行 · {{ bytes|bytes }}
{% if lines %}
{% for line in lines %}
{{ line.level|default:"—" }}{{ line.text|strip_ansi }}
{% endfor %}
{% else %}
{% icon "file" %}
{% if query %}没有匹配的日志行{% else %}日志文件还没有内容{% endif %}
{% if query %}换一个关键词试试。{% else %}启动服务并产生流量后,日志会写入数据目录。{% endif %}
{% endif %}
{% endblock %}