summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_config.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-27 10:58:33 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-27 10:58:33 +0000
commit1f08b4d3e99d7955cf62cdaac0123de79b1acdb2 (patch)
treeadd66a586aa27931f1c5bb4a36f8b6eaa743a960 /roundcubemail/program/include/rcube_config.php
parente90425d8c5a3cd3c03cdd3a8252d78bc516cebf5 (diff)
- added options to use syslog instead of log file (#1484850)
- added Logging & Debugging section in Installer - fixed config from $_POST for next installer steps saving - fixed and re-enabled debug_level setting in installer git-svn-id: https://svn.roundcube.net/trunk@1683 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_config.php')
-rw-r--r--roundcubemail/program/include/rcube_config.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_config.php b/roundcubemail/program/include/rcube_config.php
index db53fe7e1..43f735ba9 100644
--- a/roundcubemail/program/include/rcube_config.php
+++ b/roundcubemail/program/include/rcube_config.php
@@ -82,7 +82,12 @@ class rcube_config
// set PHP error logging according to config
if ($this->prop['debug_level'] & 1) {
ini_set('log_errors', 1);
- ini_set('error_log', $this->prop['log_dir'] . '/errors');
+
+ if ($this->prop['log_driver'] == 'syslog') {
+ ini_set('error_log', 'syslog');
+ } else {
+ ini_set('error_log', $this->prop['log_dir'].'/errors');
+ }
}
if ($this->prop['debug_level'] & 4) {
ini_set('display_errors', 1);