2021-04-10 15:25:27 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block header %}
|
|
|
|
{% block title %}<h1>Token Log</h1>{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<td>Timestamp</td>
|
2021-04-17 13:50:46 +00:00
|
|
|
<td>Level</td>
|
2021-04-10 15:25:27 +00:00
|
|
|
<td>Message</td>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for line in log %}
|
2021-04-17 13:50:46 +00:00
|
|
|
{% if line[2] == 'INFO' %}
|
|
|
|
<tr style="background-color: lightgreen">
|
|
|
|
{% elif line[2] == 'WARNING'%}
|
|
|
|
<tr style="background-color: orange">
|
|
|
|
{% elif line[2] == 'ERROR' %}
|
|
|
|
<tr style="background-color: red">
|
|
|
|
{% elif line[2] == 'DEBUG'%}
|
|
|
|
<tr style="background-color: lightblue">
|
|
|
|
{% else %}
|
|
|
|
<tr>
|
|
|
|
{% endif %}
|
2021-04-10 15:25:27 +00:00
|
|
|
<td>{{ line[0] }}</td>
|
|
|
|
<td>{{ line[2] }}</td>
|
2021-04-17 13:50:46 +00:00
|
|
|
<td>{{ line[3] }}</td>
|
2021-04-10 15:25:27 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|