viewLoggingConfig.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html>
  2. <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{monitoring/layout}">
  3. <head>
  4. <title th:text="#{cas.loggingdashboard.title}"></title>
  5. <script th:inline="javascript">
  6. /*<![CDATA[*/
  7. var logConfigFileLocation = /*[[${logConfigurationFile}]]*/;
  8. var urls = {
  9. getConfiguration: /*[[@{/status/logging/getConfiguration}]]*/,
  10. getAuditLog: /*[[@{/status/logging/getAuditLog}]]*/,
  11. updateLevel: /*[[@{/status/logging/updateLoggerLevel}]]*/,
  12. reportsWebsocket: /*[[@{/reports-websocket}]]*/
  13. };
  14. /*]]>*/
  15. </script>
  16. <script type="text/javascript" th:inline="javascript">
  17. function jqueryReady() {
  18. head.load(
  19. /*[[@{/css/loggingDashboard.css}]]*/
  20. );
  21. head.load(
  22. /*[[@{/js/sockjs.js}]]*/,
  23. /*[[@{/js/stomp.js}]]*/,
  24. /*[[@{/js/loggingDashboard.js}]]*/
  25. );
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <div layout:fragment="content">
  31. <h2>Logging</h2>
  32. <div id="loggingDashboard">
  33. <div id="loadingMessage" class="">
  34. <strong th:text="#{cas.loggingdashboard.loading}"/>
  35. </div>
  36. <div id="errorLoadingData" class="alert alert-danger d-none">
  37. <h3 th:text="#{cas.loggingdashboard.loading.error}"/>
  38. <div>
  39. <input class="btn btn-success" type="button"
  40. onclick="location.reload();" th:value="#{cas.ssosessions.button.refresh}"/>
  41. </div>
  42. </div>
  43. <div class="tabsContainer d-none">
  44. <div id="alert-container"></div>
  45. <ul class="nav nav-tabs" id="myTab" role="tablist">
  46. <li class="nav-item">
  47. <a class="nav-link active" id="logger-tab" data-toggle="tab" href="#loggersTab" role="tab"
  48. aria-controls="loggersTab" aria-selected="true">Loggers</a>
  49. </li>
  50. <li class="nav-item">
  51. <a class="nav-link" id="logOutput-tab" href="#logOutputTab" aria-controls="logOutput"
  52. role="tab" data-toggle="tab">CAS Log</a>
  53. </li>
  54. <li class="nav-item">
  55. <a class="nav-link" id="auditLog-tab" data-toggle="tab" href="#auditLogTab" role="tab" aria-controls="auditLog" aria-selected="false">Audit Log</a>
  56. </li>
  57. </ul>
  58. <div class="tab-content" id="myTabContent">
  59. <div class="tab-pane fade show active" id="loggersTab" role="tabpanel" aria-labelledby="logger-tab">
  60. <table id="loggersTable" class="table table-striped table-bordered">
  61. <thead>
  62. <tr>
  63. <th></th>
  64. <th th:text="#{cas.loggingdashboard.logger}"/>
  65. <th th:text="#{cas.loggingdashboard.additive}"/>
  66. <th th:text="#{cas.loggingdashboard.state}"/>
  67. <th th:text="#{cas.loggingdashboard.level}"/>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. <tr>
  72. <td></td>
  73. <td>logger</td>
  74. <td>additive</td>
  75. <td>state</td>
  76. <td>level</td>
  77. </tr>
  78. </tbody>
  79. </table>
  80. </div>
  81. <div class="tab-pane fade" id="logOutputTab" role="tabpanel" aria-labelledby="logOutput-tab">
  82. <div id="websocketStatus" class="alert alert-info" style="visibility:hidden"></div>
  83. <textarea id="logoutputarea" rows="20" cols="20"></textarea>
  84. </div>
  85. <div class="tab-pane fade" id="auditLogTab" role="tabpanel" aria-labelledby="auditLog-tab">
  86. <table id="auditLogTable" class="display table table-striped table-bordered">
  87. <thead>
  88. <tr>
  89. <th>Who</th>
  90. <th>What</th>
  91. <th>Action</th>
  92. <th>When</th>
  93. <th>Client IP</th>
  94. <th>Server IP</th>
  95. </tr>
  96. </thead>
  97. <tbody/>
  98. </table>
  99. </div>
  100. </div>
  101. <div th:replace="monitoring/fragments/footerButtons"/>
  102. </div>
  103. </div>
  104. </div>
  105. </body>
  106. </html>