优化日志显示

This commit is contained in:
GoEdgeLab
2021-05-25 12:14:21 +08:00
parent 3097d8f6f9
commit fe15123dee
5 changed files with 10 additions and 3 deletions

View File

@@ -116,6 +116,9 @@ pre.red {
span.blue { span.blue {
color: #4183c4; color: #4183c4;
} }
span.orange {
color: #ff851b;
}
pre:not(.CodeMirror-line) { pre:not(.CodeMirror-line) {
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif !important; font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif !important;
} }

File diff suppressed because one or more lines are too long

View File

@@ -37,6 +37,10 @@ span.blue {
color: #4183c4; color: #4183c4;
} }
span.orange {
color: #ff851b;
}
pre:not(.CodeMirror-line) { pre:not(.CodeMirror-line) {
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif !important; font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif !important;
} }

View File

@@ -12,7 +12,7 @@
</thead> </thead>
<tr v-for="log in logs"> <tr v-for="log in logs">
<td> <td>
<pre class="log-box"><span :class="{red:log.level == 'error', yellow:log.level == 'warning'}"><span v-if="!log.isToday">[{{log.createdTime}}]</span><strong v-if="log.isToday">[{{log.createdTime}}]</strong>[{{log.tag}}]{{log.description}}</span></pre> <pre class="log-box"><span :class="{red:log.level == 'error', orange:log.level == 'warning'}"><span v-if="!log.isToday">[{{log.createdTime}}]</span><strong v-if="log.isToday">[{{log.createdTime}}]</strong>[{{log.tag}}]{{log.description}}</span></pre>
</td> </td>
</tr> </tr>
</table> </table>

View File

@@ -50,7 +50,7 @@
</thead> </thead>
<tr v-for="log in logs"> <tr v-for="log in logs">
<td> <td>
<pre class="log-box"><span :class="{red:log.level == 'error', yellow:log.level == 'warning'}"><span v-if="!log.isToday">[{{log.createdTime}}]</span><strong v-if="log.isToday">[{{log.createdTime}}]</strong>[{{log.tag}}]{{log.description}}</span> &nbsp; <span v-if="log.count > 0" class="ui label tiny red">共{{log.count}}条</span></pre> <pre class="log-box"><span :class="{red:log.level == 'error', orange:log.level == 'warning'}"><span v-if="!log.isToday">[{{log.createdTime}}]</span><strong v-if="log.isToday">[{{log.createdTime}}]</strong>[{{log.tag}}]{{log.description}}</span> &nbsp; <span v-if="log.count > 0" class="ui label tiny" :class="{red:log.level == 'error', orange:log.level == 'warning'}">共{{log.count}}条</span></pre>
</td> </td>
</tr> </tr>
</table> </table>