-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (95 loc) · 2.47 KB
/
index.html
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
<!DOCTYPE HTML>
<html>
<head>
<title>Tawlk</title>
<style>
* {
border:0;
padding:0;
margin:0;
color:#FFF;
background:#000;
font-family:monospace;
font-size:12px;
}
body {
display:block;
width:100%;
max-width:100%;
}
table {
width:100%;
overflow: hidden;
}
table td {
padding:3px;
white-space: nowrap;
text-overflow: ellipsis;
overflow:hidden;
}
table td.message {
border-bottom:2px #666 solid;
max-width:50px;
}
table td.date {
width:60px;
}
table td.file {
width:60px;
}
table td.pid {
width:60px;
}
table td.pid {
width:30px;
}
table td.level {
width:10px;
background:#444;
}
table td.line {
width:10px;
}
table tr.Configuration td {
background:#311;
}
table tr.Core td {
background:#131;
}
table tr.PluginDispatcher td {
background:#113;
}
table tr.PluginManager td {
background:#313;
}
table tr.Connector td {
background:#331;
}
table tr.Security td {
background:#313131;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$.getJSON("/?callback=?",
function(data) {
// PluginDispatcherWorkerThread.log|2011-06-10 10:15:59,233 | 107322682521344 | 10 | PluginDispatcher:run:74
// PluginDispatcherWorkerThread.log| Worker thread started.
$.each(data, function(i,item){
console.log(item.msg)
$('<tr class="'+item.line[0]+'"><td class="date">' + item.date
+ '</td><td class="file">' + item.file
+ '</td><td class="pid">' + item.pid
+ '</td><td class="level">' + item.level
+ '</td><td class="line">' + item.line[0]
+ '</td></tr>').appendTo("#log");
$('<tr class="'+item.line[0]+'"><td class="message" colspan="5">' + item.msg.join("<br>")
+ '</td></tr>').appendTo("#log");
});
});
</script>
</head>
<body>
<table id="log"></table>
</body>
</html>