浏览代码

[WebProfilerBundle] Added the support of the the logging context in the template

Christophe Coevoet 14 年之前
父节点
当前提交
72d0ebe926
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig

+ 6 - 0
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig

@@ -32,6 +32,12 @@
             {% for log in collector.logs %}
                 <li class="{{ cycle(['odd', 'even'], loop.index) }}{% if 'ERR' == log.priorityName or 'ERROR' == log.priorityName %} error{% endif %}">
                     {{ log.message }}
+                    {% if log.context is defined and log.context is not empty %}
+                        <br />
+                        <small>
+                            <strong>Context</strong>: {{ log.context|yaml_encode }}
+                        </small>
+                    {% endif %}
                 </li>
             {% endfor %}
         </ul>