{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% import _self as helper %} {% block toolbar %} {% if collector.counterrors or collector.countdeprecations or collector.countwarnings %} {% set icon %} {% set status_color = collector.counterrors ? 'red' : collector.countwarnings ? 'yellow' : 'none' %} {{ include('@WebProfiler/Icon/logger.svg') }} {{ collector.counterrors ?: (collector.countdeprecations + collector.countwarnings) }} {% endset %} {% set text %}
Errors {{ collector.counterrors|default(0) }}
Warnings {{ collector.countwarnings|default(0) }}
Deprecations {{ collector.countdeprecations|default(0) }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }} {% endif %} {% endblock %} {% block menu %} {{ include('@WebProfiler/Icon/logger.svg') }} Logs {% if collector.counterrors or collector.countdeprecations or collector.countwarnings %} {{ collector.counterrors ?: (collector.countdeprecations + collector.countwarnings) }} {% endif %} {% endblock %} {% block panel %}

Log Messages

{% if collector.processedLogs is empty %}

No log messages available.

{% else %} {% set has_error_logs = collector.processedLogs|column('type')|filter(type => 'error' == type)|length > 0 %} {% set has_deprecation_logs = collector.processedLogs|column('type')|filter(type => 'deprecation' == type)|length > 0 %} {% set filters = collector.filters %}
{{ include('@WebProfiler/Icon/filter.svg') }} Level ({{ filters.priority|length - 1 }})
{% for label, value in filters.priority %}
{% endfor %}
{{ include('@WebProfiler/Icon/filter.svg') }} Channel ({{ filters.channel|length - 1 }})
{% for value in filters.channel %}
{% endfor %}
{% for log in collector.processedLogs %} {% set css_class = 'error' == log.type ? 'error' : (log.priorityName == 'WARNING' or 'deprecation' == log.type) ? 'warning' : 'silenced' == log.type ? 'silenced' %} {% endfor %}
Time Message
{% if log.type in ['error', 'deprecation', 'silenced'] or 'WARNING' == log.priorityName %} {% if 'error' == log.type or 'WARNING' == log.priorityName %} {{ log.priorityName|lower }} {% else %} {{ log.type|lower }} {% endif %} {% endif %} {{ helper.render_log_message('debug', loop.index, log) }}

There are no log messages.

{% endif %} {% set compilerLogTotal = 0 %} {% for logs in collector.compilerLogs %} {% set compilerLogTotal = compilerLogTotal + logs|length %} {% endfor %}

Container Compilation Logs ({{ compilerLogTotal }})

Log messages generated during the compilation of the service container.

{% if collector.compilerLogs is empty %}

There are no compiler log messages.

{% else %} {% for class, logs in collector.compilerLogs %} {% endfor %}
Messages Class
{{ logs|length }} {% set context_id = 'context-compiler-' ~ loop.index %} {{ class }}
    {% for log in logs %}
  • {{ profiler_dump_log(log.message) }}
  • {% endfor %}
{% endif %}
{% endblock %} {% macro render_log_message(category, log_index, log) %} {% set has_context = log.context is defined and log.context is not empty %} {% set has_trace = log.context.exception.trace is defined %} {% if not has_context %} {{ profiler_dump_log(log.message) }} {% else %} {{ profiler_dump_log(log.message, log.context) }} {% endif %}
{% if log.channel %} {{ log.channel }} {% endif %} {% if log.errorCount is defined and log.errorCount > 1 %} {{ log.errorCount }} times {% endif %} {% if has_context %} {% set context_id = 'context-' ~ category ~ '-' ~ log_index %} Show context {% endif %} {% if has_trace %} {% set trace_id = 'trace-' ~ category ~ '-' ~ log_index %} Show trace
{{ profiler_dump(log.context.exception.trace, maxDepth=1) }}
{% endif %} {% if has_context %}
{{ profiler_dump(log.context, maxDepth=1) }}
{% endif %} {% if has_trace %}
{{ profiler_dump(log.context.exception.trace, maxDepth=1) }}
{% endif %}
{% endmacro %}