blob: 0ced54f0e794ddb3bcdcbf26940f998f6fbea1c8 (
plain)
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
|
<? ctl = ... ?>
<h1>System logging</h1>
<h2>System info</h2>
<form>
<DT>Process status</DT>
<DD><?= ctl.status ?></DD>
<DT>Daemon control</DT>
<dd><form action="" method="POST">
<input type=submit name="srvcmd" value="start" class="submit">
<input type=submit name="srvcmd" value="stop" class="submit">
<input type=submit name="srvcmd" value="restart" class="submit"></form>
</dd>
<H2>Configuration</H2>
<H3>General settings</H3>
<DT>Log to given file</DT>
<DD><input type="text" class="text" name="smallerlogg"/>
<P>(default=/var/log/messages)</P></DD>
<DT>Set local log level</DT>
<DD><input class="radio" type="radio" name="loglevel" value="1">1
<input class="radio" type="radio" name="loglevel" value="2">2
<input class="radio" type="radio" name="loglevel" value="3">3
<input class="radio" type="radio" name="loglevel" value="4">4
<input class="radio" type="radio" name="loglevel" value="5">5
<p>(1=Quiet, 5=Noisy)</P>
</DD>
<DT>Smaller logging output</DT>
<DD><input type="checkbox" name="smallerlogg"/></DD>
<H3>Save logs for a longer period</H3>
<DT>Max size (KB) before rotate</DT>
<DD><input type="text" class="text" name="smallerlogg"/>
<p>(default=200KB, 0=off)</p>
</DD>
<DT>Number of rotated logs to keep</DT>
<DD><input type="text" class="text" name="smallerlogg"/>
<p>(default=1, max=99, 0=purge)</p>
</DD>
<H3>Remote logging</H3>
<DT>Log to IP or hostname on PORT</DT><DD><input type="text" class="text" value="<?= ctl.host ?>" name="host"/>
<P>(default PORT=514/UDP)</P></DD>
<H2>Save above settings</H2>
<DT>Apply settings</DT>
<DD><input class="submit" type="submit" value="Apply"/></DD>
</form>
<?
--[[ DEBUG INFORMATION
view = ...
require("debugs")
io.write(debugs.variables(view))
--]]
?>
|