-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathloggingwebpage.py
More file actions
38 lines (37 loc) · 1 KB
/
loggingwebpage.py
File metadata and controls
38 lines (37 loc) · 1 KB
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
'''
This module contains the html the logging server uses to display it's
status.
'''
# the html code that makes up the logging servers status page
htmlpage = '''
<html>
<head>
<meta http-equiv="refresh" content="5" />
<title>Logging Server Status Page</title>
<link rel="stylesheet" type="text/css"
href="http://localhost/loggingserver.css" />
</head>
<body>
<h4>Logging Server Status Page</h4>
<table width="50%%">
<tr class="header">
<td class="cell">Logging Server Start Time</td>
<td class="cell">%(starttime)s</td>
</tr>
<tr class="header">
<td class="cell">Logging Server Uptime</td>
<td class="cell">%(uptime)s</td>
</tr>
<tr class="header">
<td class="cell">Log Records Total</td>
<td class="cell">%(logrecordstotal)s</td>
</tr>
</table width="95%%">
<!-- table of most recent log records -->
<h4>Most Recent Log Records</h4>
<table>
%(all)s
</table>
</body>
</html>
'''