{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% import _self as logger %} {% block toolbar %} {% if collector.counterrors or collector.countdeprecations %} {% set icon %} Logs {% if collector.counterrors %} {% set status_color = "red" %} {% else %} {% set status_color = "yellow" %} {% endif %} {% set error_count = collector.counterrors + collector.countdeprecations %} {{ error_count }} {% endset %} {% set text %} {% if collector.counterrors %}
Exception {{ collector.counterrors }}
{% endif %} {% if collector.countdeprecations %}
Deprecated Calls {{ collector.countdeprecations }}
{% endif %} {% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url } %} {% endif %} {% endblock %} {% block menu %} Logger Logs {% if collector.counterrors or collector.countdeprecations %} {% set error_count = collector.counterrors + collector.countdeprecations %} {{ error_count }} {% endif %} {% endblock %} {% block panel %}

Logs

{% set priority = request.query.get('priority', 0) %}
Filter
{% if collector.logs %} {% else %}

No logs available.

{% endif %} {% endblock %} {% macro display_message(log_index, log) %} {% if constant('Symfony\\Component\\HttpKernel\\Debug\\ErrorHandler::TYPE_DEPRECATION') == log.context.type|default(0) %} DEPRECATION - {{ log.message }} {% set id = 'sf-call-stack-' ~ log_index %} + {% for index, call in log.context.stack if index > 1 %} {% if index == 2 %} ' : '' }} {% endfor %} {% else %} {{ log.priorityName }} - {{ log.message }} {% if log.context is defined and log.context is not empty %}
Context: {{ log.context|json_encode(64 b-or 256) }} {% endif %} {% endif %} {% endmacro %}