Add log viewer
This commit is contained in:
19
Resources/views/errors.html.twig
Normal file
19
Resources/views/errors.html.twig
Normal file
@ -0,0 +1,19 @@
|
||||
{% extends '@ArdentLogger/layout.html.twig' %}
|
||||
|
||||
{% block ardent_logger_user_content %}
|
||||
Error overview <br>
|
||||
|
||||
{% for log in logs %}
|
||||
{# @var log \App\Ardent\LoggerBundle\Entity\LogEntry #}
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{ log.levelName }} #{{ log.id }}</h5>
|
||||
<h6 class="card-subtitle mb-2 text-muted">{{ log.createdAt | date('D, d M y H:i:s') }}</h6>
|
||||
<p class="card-text">{{ log.message }}</p>
|
||||
{% for context in log.context %}
|
||||
<p class="card-text"> > {{ context }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
2
Resources/views/layout.html.twig
Normal file
2
Resources/views/layout.html.twig
Normal file
@ -0,0 +1,2 @@
|
||||
{% block ardent_logger_user_content %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user