From b77d0dd6c5574d9841cd5d040dfcc351a58ccb82 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 27 Aug 2008 10:58:33 +0000 Subject: - 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 --- program/include/rcube_config.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'program/include/rcube_config.php') 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); -- cgit v1.2.3