cleanup for logfiles, added log for info and error, better logviewer in admin panel
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Logs – MK Control{% endblock %}
|
||||
{% block title %}Logs – {{ date }}. {{ today[:4] }}-{{ today[5:] }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container my-5">
|
||||
<h1>Log-Datei (app.log)</h1>
|
||||
|
||||
<pre class="bg-dark text-light p-4 rounded" style="max-height: 70vh; overflow-y: auto; font-size: 0.9rem;">
|
||||
<h1>Logs – {{ date }}. {{ today[:4] }}-{{ today[5:] }}</h1>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="date-select" class="form-label">Tag auswählen:</label>
|
||||
<select id="date-select" class="form-select w-auto d-inline-block" onchange="window.location.href='/admin/logs/' + this.value">
|
||||
{% for d in dates %}
|
||||
<option value="{{ d }}" {% if d == date %}selected{% endif %}>{{ d }}.</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<pre class="bg-dark text-light p-4 rounded" style="max-height: 70vh; overflow-y: auto; font-size: 0.95rem; white-space: pre-wrap;">
|
||||
{{ logs | safe }}
|
||||
</pre>
|
||||
|
||||
<div class="mt-4">
|
||||
<a href="{{ url_for('admin') }}" class="btn btn-secondary">Zurück zum Admin</a>
|
||||
</div>
|
||||
<a href="{{ url_for('admin') }}" class="btn btn-secondary mt-3">Zurück zum Admin</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user