aboutsummaryrefslogtreecommitdiffstats
path: root/config/dansguardian
diff options
context:
space:
mode:
Diffstat (limited to 'config/dansguardian')
-rwxr-xr-xconfig/dansguardian/dansguardian.conf.template2
-rwxr-xr-xconfig/dansguardian/dansguardian.inc1
-rw-r--r--config/dansguardian/dansguardian_log.xml1
3 files changed, 3 insertions, 1 deletions
diff --git a/config/dansguardian/dansguardian.conf.template b/config/dansguardian/dansguardian.conf.template
index ed514eca..a6bcee1c 100755
--- a/config/dansguardian/dansguardian.conf.template
+++ b/config/dansguardian/dansguardian.conf.template
@@ -90,7 +90,7 @@ anonymizelogs = {$anonymizelogs}
#
# Use syslog for access logging instead of logging to the file
# at the defined or built-in "loglocation"
-#logsyslog = off
+logsyslog = {$logsyslog}
# Log file location
#
diff --git a/config/dansguardian/dansguardian.inc b/config/dansguardian/dansguardian.inc
index b31df8ab..ad6e6482 100755
--- a/config/dansguardian/dansguardian.inc
+++ b/config/dansguardian/dansguardian.inc
@@ -232,6 +232,7 @@ function sync_package_dansguardian($via_rpc="no",$install_process=false) {
$nologger=(preg_match('/nologger/',$dansguardian_log['logging_options'])?"on":"off");
$logadblocks=(preg_match('/logadblocks/',$dansguardian_log['logging_options'])?"on":"off");
$anonymizelogs=(preg_match('/anonymizelogs/',$dansguardian_log['logging_options'])?"on":"off");
+ $logsyslog=(preg_match('/logsyslog/',$dansguardian_log['logging_options'])?"on":"off");
$loglevel=($dansguardian_log['loglevel']?$dansguardian_log['loglevel']:"2");
$logexceptionhits=($dansguardian_log['logexceptionhits']?$dansguardian_log['logexceptionhits']:"2");
diff --git a/config/dansguardian/dansguardian_log.xml b/config/dansguardian/dansguardian_log.xml
index 88281dff..97cd5b0b 100644
--- a/config/dansguardian/dansguardian_log.xml
+++ b/config/dansguardian/dansguardian_log.xml
@@ -197,6 +197,7 @@
<option><name>nologger (off)</name><value>nologger</value></option>
<option><name>logadblocks (off)</name><value>logadblocks</value></option>
<option><name>Anonymize logs (off)</name><value>anonymizelogs</value></option>
+ <option><name>Log to syslog (off)</name><value>logsyslog</value></option>
</options>
<multiple/>
<size>6</size>