1
13693261870
2022-09-16 58d012f11dd34564d81b4eb3a6099eb689876597
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="monitoring/layout">
 
<head>
    <title th:text="#{cas.loggingdashboard.title}"></title>
    <script th:inline="javascript">
        /*<![CDATA[*/
 
        var logConfigFileLocation = /*[[${logConfigurationFile}]]*/;
 
        var urls = {
            getConfiguration: /*[[@{/status/logging/getConfiguration}]]*/,
            getAuditLog: /*[[@{/status/logging/getAuditLog}]]*/,
            updateLevel: /*[[@{/status/logging/updateLoggerLevel}]]*/,
            logOutput: /*[[@{/logoutput}]]*/
        };
 
        /*]]>*/
    </script>
 
    <script type="text/javascript" th:inline="javascript">
 
        function jqueryReady() {
            head.load(
                    /*[[@{/css/loggingDashboard.css}]]*/
            );
            head.load(
                    /*[[@{/js/sockjs.js}]]*/,
                    /*[[@{/js/stomp.js}]]*/,
                    /*[[@{/js/loggingDashboard.js}]]*/
            );
        }
    </script>
</head>
 
<body id="cas">
<div layout:fragment="content">
 
    <div id="loggingDashboard">
        <h1>Logging</h1>
 
        <div id="loadingMessage">
            <h3 th:text="#{cas.loggingdashboard.loading}"/>
        </div>
 
        <div id="errorLoadingData" class="alert alert-danger hidden">
            <h2 th:text="#{cas.loggingdashboard.loading.error}"/>
            <div>
                <input class="btn btn-success" type="button"
                       onclick="location.reload();" th:value="#{cas.ssosessions.button.refresh}"/>
            </div>
        </div>
 
        <div class="tabsContainer hidden row">
            <div id="alert-container"></div>
            <!-- Nav tabs -->
            <ul id="myTabs" class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active"><a href="#loggersTab" aria-controls="loggersTab" role="tab"
                                                          data-toggle="tab">Loggers</a></li>
 
                <!--
                <li role="presentation"><a href="#activeLoggers" aria-controls="activeLoggers" role="tab" data-toggle="tab">Active
                    Loggers</a></li>
                 -->
                <li role="presentation"><a href="#logOutput" aria-controls="logOutput" role="tab" data-toggle="tab">CAS Log</a></li>
                <li role="presentation"><a href="#auditLog" aria-controls="auditLog" role="tab" data-toggle="tab">Audit Log</a></li>
            </ul>
 
            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="loggersTab">
                    <table id="loggersTable" class="display table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th></th>
                            <th th:text="#{cas.loggingdashboard.logger}"/>
                            <th th:text="#{cas.loggingdashboard.additive}"/>
                            <th th:text="#{cas.loggingdashboard.state}"/>
                            <th th:text="#{cas.loggingdashboard.level}"/>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td></td>
                            <td>logger</td>
                            <td>level</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div role="tabpanel" class="tab-pane" id="activeLoggers">
                    <table id="activeLoggersTable" class="display table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th></th>
                            <th th:text="#{cas.loggingdashboard.logger}"/>
                            <th th:text="#{cas.loggingdashboard.additive}"/>
                            <th th:text="#{cas.loggingdashboard.state}"/>
                            <th th:text="#{cas.loggingdashboard.level}"/>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div role="tabpanel" class="tab-pane" id="auditLog">
                    <table id="auditLogTable" class="display table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th>Who</th>
                            <th>What</th>
                            <th>Action</th>
                            <th>When</th>
                            <th>Client IP</th>
                            <th>Server IP</th>
                        </tr>
                        </thead>
                        <tbody />
                    </table>
                </div>
                <div role="tabpanel" class="tab-pane" id="logOutput">
                    <div id="websocketStatus" class="alert alert-info" style="visibility:hidden"/>
                </div>
                <textarea id="logoutputarea" rows="20" cols="20"></textarea>
            </div>
        </div>
        <div th:replace="fragments/footerButtons"/>
    </div>
 
 
</div>
</body>
</html>