diff options
author | alecpl <alec@alec.pl> | 2008-08-27 10:58:33 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-08-27 10:58:33 +0000 |
commit | b77d0dd6c5574d9841cd5d040dfcc351a58ccb82 (patch) | |
tree | 6c8e872c3d4be368f2fa631f2421d3935e71ab21 /program/include/rcube_config.php | |
parent | d5c539942e3cb4ad623a3f3f0344fc45af371981 (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
Diffstat (limited to 'program/include/rcube_config.php')
-rw-r--r-- | program/include/rcube_config.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php index db53fe7e1..43f735ba9 100644 --- a/program/include/rcube_config.php +++ b/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); |