-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Required to implement MeerkatLabs/autology#62
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends "base.html" %} | ||
{% block subtitle %}Log Reporting{% endblock %} | ||
|
||
{% block body %} | ||
|
||
<div class="container"> | ||
<h1>Logs</h1> | ||
|
||
{% for log_record in log_records %} | ||
|
||
{% if log_record.levelno >= 40 %} | ||
<div class="alert alert-danger"> | ||
{% elif log_record.levelno >= 30 %} | ||
<div class="alert alert-warning"> | ||
{% elif log_record.levelno >= 20 %} | ||
<div class="alert alert-info"> | ||
{% else %} | ||
<div class="alert alert-light"> | ||
{% endif %} | ||
|
||
<p>{{log_record.levelname}} - {{ log_record.getMessage() }}</p> | ||
|
||
<hr> | ||
|
||
<p>{{ log_record.pathname }} - {{ log_record.lineno }}</p> | ||
</div> | ||
|
||
{% endfor %} | ||
|
||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters