systemLog.html 2.73 KB
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="UTF-8">
<head th:include="include :: header">
</head>
<body class="gray-bg">
<div class="col-sm-12" style="height: auto;">
    <div class="select-info" style="height: 100%;">
        <h1 style="margin-bottom: 15px;font-weight: bold ">系统日志</h1>
        <div class="panel panel-info">
            <div class="panel-heading">一般日志</div>
            <div class="panel-body">
                <a data-toggle="collapse" data-target="#infoLogList">sys-info</a>
                <div class="panel-collapse collapse" style="margin-top: 10px" id="infoLogList">
                    <ul th:each="name:${infoNames}">
                        <li>
                            <a th:text="${name}" th:onclick="getLog([[${name}]])"></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="panel panel-primary">
            <div class="panel-heading">调试日志</div>
            <div class="panel-body">
                <a data-toggle="collapse" data-target="#debugLogList">sys-debug</a>
                <div class="panel-collapse collapse" style="margin-top: 10px" id="debugLogList">
                    <ul th:each="name:${debugNames}">
                        <li><a th:text="${name}" th:onclick="getLog([[${name}]])"></a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="panel panel-warning">
            <div class="panel-heading">警告日志</div>
            <div class="panel-body">
                <a data-toggle="collapse" data-target="#warnLogList">sys-warn</a>
                <div class="panel-collapse collapse" style="margin-top: 10px" id="warnLogList">
                    <ul th:each="name:${warnNames}">
                        <li><a th:text="${name}" th:onclick="getLog([[${name}]])"></a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="panel panel-danger">
            <div class="panel-heading">错误日志</div>
            <div class="panel-body">
                <a data-toggle="collapse" data-target="#errorLogList">sys-error</a>
                <div class="panel-collapse collapse" style="margin-top: 10px" id="errorLogList">
                    <ul th:each="name:${errorNames}">
                        <li><a th:text="${name}" th:onclick="getLog([[${name}]])"></a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    function getLog(name) {
        $.modal.openFull(name, ctx+"monitor/systemLog/logview?name="+name)
    }
</script>
</html>