summaryrefslogtreecommitdiffstats
path: root/syslog-config-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'syslog-config-html.lsp')
-rw-r--r--syslog-config-html.lsp34
1 files changed, 30 insertions, 4 deletions
diff --git a/syslog-config-html.lsp b/syslog-config-html.lsp
index 9ef330a..48ba1b7 100644
--- a/syslog-config-html.lsp
+++ b/syslog-config-html.lsp
@@ -7,13 +7,38 @@
<DD><input class="radio" type="radio" name="loglevel" value="2" <? if (tostring(view.config.loglevel) == "2") then io.write('checked') end ?>>Enable
<input class="radio" type="radio" name="loglevel" value="3" <? if (tostring(view.config.loglevel) == "3") then io.write('checked') end ?>>Disable</DD>
-<H2>Guided setup</H2>
+<H2>Guided config</H2>
+<H3>General settings</H3>
+
+<DT>Log to given file</DT>
+<DD><input type="text" class="text" name="smallerlogg" value="<?= view.config.logfile ?>"/>
+<P>(default=/var/log/messages)</P></DD>
+
+<DT>Set local log level</DT>
+<DD><input class="radio" type="radio" name="loglevel" value="1" <? if (tostring(view.config.loglevel) == "1") then io.write('checked') end ?>>1
+<input class="radio" type="radio" name="loglevel" value="2" <? if (tostring(view.config.loglevel) == "2") then io.write('checked') end ?>>2
+<input class="radio" type="radio" name="loglevel" value="3" <? if (tostring(view.config.loglevel) == "3") then io.write('checked') end ?>>3
+<input class="radio" type="radio" name="loglevel" value="4" <? if (tostring(view.config.loglevel) == "4") then io.write('checked') end ?>>4
+<input class="radio" type="radio" name="loglevel" value="5" <? if (tostring(view.config.loglevel) == "5") then io.write('checked') end ?>>5
+<input class="radio" type="radio" name="loglevel" value="" <? if (tostring(view.config.loglevel) == "") then io.write('checked') end ?>>Default
+<p>(1=Quiet, 5=Noisy, Default=Not specifyed any loglevel in the config)</P>
+</DD>
+
+<DT>Smaller logging output</DT>
+<DD><input type="checkbox" name="smallog" <? if (view.config.smallog) then io.write('checked') end ?>/></DD>
+<H3>Save logs for a longer period</H3>
+<DT>Max size (KB) before rotate</DT>
+<DD><input type="text" class="text" name="maxsize" value="<?= view.config.maxsize ?>"/>
+<p>(default=200KB, 0=off)</p>
+</DD>
-<H3>Remote logging</H3>
+<DT>Number of rotated logs to keep</DT>
+<DD><input type="text" class="text" name="logrotate" value="<?= view.config.logrotate ?>"/>
+<p>(default=1, max=99, 0=purge)</p>
+</DD>
-<DT>Activate remote logging</DT>
-<DD><input type="checkbox" name="smallog" <? if (view.config.smallog) then io.write('checked') end ?>/></DD>
+<H3>Remote logging</H3>
<DT>Log to IP or hostname on PORT</DT>
<DD><input type="text" class="text" name="host" value="<?= view.config.remote ?>"/>
@@ -23,3 +48,4 @@
<DT>Apply settings</DT>
<DD><input class="submit" type="submit" value="Apply"/></DD>
+