|
87 | 87 | </table>
|
88 | 88 |
|
89 | 89 | {% if collector.logs %}
|
90 |
| - <ul class="alt"> |
| 90 | + <table> |
| 91 | + <tr> |
| 92 | + <th>#</th> |
| 93 | + <th>Priority</th> |
| 94 | + <th>Channel</th> |
| 95 | + <th>Message and context</th> |
| 96 | + </tr> |
| 97 | + |
91 | 98 | {% set log_loop_index = 0 %}
|
92 | 99 | {% for log in collector.logs %}
|
93 | 100 | {% set is_deprecation = log.context.level is defined and log.context.type is defined and (constant('E_DEPRECATED') == log.context.type or constant('E_USER_DEPRECATED') == log.context.type) %}
|
94 | 101 | {% if priority == '-100' ? is_deprecation : log.priority >= priority %}
|
95 | 102 | {% set log_loop_index = log_loop_index + 1 %}
|
96 |
| - <li class="{{ cycle(['odd', 'even'], log_loop_index) }}{% if log.context.scream is defined %} scream{% elseif log.priority >= 400 %} error{% elseif log.priority >= 300 or is_deprecation %} warning{% endif %}"> |
97 |
| - {{ logger.display_message(loop.index, log, is_deprecation) }} |
98 |
| - </li> |
| 103 | + <tr class="{{ cycle(['odd', 'even'], log_loop_index) }}{% if log.context.scream is defined %} scream{% elseif log.priority >= 400 %} error{% elseif log.priority >= 300 or is_deprecation %} warning{% endif %}"> |
| 104 | + <td>{{ log_loop_index }}</td> |
| 105 | + <td>{{ is_deprecation ? 'DEPRECATION' : log.priorityName }}</td> |
| 106 | + <td>{{ log.channel is defined ? log.channel }}</td> |
| 107 | + <td>{{ logger.display_message(loop.index, log, is_deprecation) }}</td> |
| 108 | + </tr> |
99 | 109 | {% endif %}
|
100 | 110 | {% else %}
|
101 |
| - <li><em>No logs available for this priority.</em></li> |
| 111 | + <tr><td colspan="4"><em>No logs available for {{ priority }} priority.</em></td></tr> |
102 | 112 | {% endfor %}
|
103 |
| - </ul> |
| 113 | + </table> |
104 | 114 | {% else %}
|
105 | 115 | <p>
|
106 | 116 | <em>No logs available.</em>
|
|
114 | 124 | {% set stack = log.context.stack|default([]) %}
|
115 | 125 | {% set id = 'sf-call-stack-' ~ log_index %}
|
116 | 126 |
|
117 |
| - DEPRECATED - {{ log.message }} |
| 127 | + {{ log.message }} |
118 | 128 |
|
119 | 129 | {% if stack %}
|
120 | 130 | <a href="#" onclick="Sfjs.toggle('{{ id }}', document.getElementById('{{ id }}-on'), document.getElementById('{{ id }}-off')); return false;">
|
|
144 | 154 | {% endif %}
|
145 | 155 | {% endfor %}
|
146 | 156 | {% else %}
|
147 |
| - {{ log.priorityName }} - {{ log.message }} |
| 157 | + {{ log.message }} |
148 | 158 | {% if log.context is defined and log.context is not empty %}
|
149 | 159 | <br />
|
150 | 160 | <small>
|
|
0 commit comments