{% set channel_is_defined = (logs|first).channel is defined %}
Level | {% if channel_is_defined %}Channel | {% endif %}Message |
---|---|---|
{{ log.priorityName }} {{ log.timestamp|date('H:i:s') }} | {% if channel_is_defined %}{{ log.channel }} | {% endif %}
{{ log.message|format_log_message(log.context) }}
{% if log.context ?? false %}
{{ log.context|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_UNICODE') b-or constant('JSON_UNESCAPED_SLASHES')) }}{% endif %} |