mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
feat: 完成基本的日志展示
This commit is contained in:
@@ -1,25 +1,34 @@
|
||||
<div class="layuimini-container">
|
||||
<div class="layuimini-main">
|
||||
<table id="currentTable" class="layui-table layui-hide" data-auth-add="{:auth('debug.log/add')}" data-auth-edit="{:auth('debug.log/edit')}" data-auth-delete="{:auth('debug.log/delete')}" lay-filter="currentTable">
|
||||
</table>
|
||||
<div id="log-container" class="log-container"></div>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
[data-field="content"] .layui-table-cell {
|
||||
white-space: normal !important;
|
||||
height: auto !important;
|
||||
color: #333;
|
||||
.log-container {
|
||||
background-color: #2d2d2d;
|
||||
color: #cccccc;
|
||||
font-family: "Consolas", "Monaco", "Menlo", "Courier New", "monospace";
|
||||
font-size: 13px;
|
||||
padding: 15px;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
height: calc(100vh - 120px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.log-group-0 {
|
||||
background-color: #e6e6e6;
|
||||
.log-line {
|
||||
display: block;
|
||||
padding: 2px 0;
|
||||
border-bottom: 1px solid #444;
|
||||
}
|
||||
|
||||
.log-group-1 {
|
||||
background-color: #f9f9f9;
|
||||
.log-line:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.layui-table-view .layui-table td {
|
||||
padding: 0
|
||||
}
|
||||
.log-level-info { color: #909399; }
|
||||
.log-level-debug { color: #409eff; }
|
||||
.log-level-notice { color: #67c23a; }
|
||||
.log-level-warning { color: #e6a23c; }
|
||||
.log-level-error { color: #f56c6c; }
|
||||
</style>
|
||||
Reference in New Issue
Block a user