| | |
| | | * @version @package_version@ |
| | | * @author Ziba Scott |
| | | * @website http://roundcube.net |
| | | * |
| | | * |
| | | * Example: |
| | | * |
| | | * config.inc.php: |
| | | * |
| | | * // $rcmail_config['debug_logger'][type of logging] = name of file in log_dir |
| | | * // $config['debug_logger'][type of logging] = name of file in log_dir |
| | | * // The 'master' log includes timing information |
| | | * $rcmail_config['debug_logger']['master'] = 'master'; |
| | | * $config['debug_logger']['master'] = 'master'; |
| | | * // If you want sql messages to also go into a separate file |
| | | * $rcmail_config['debug_logger']['sql'] = 'sql'; |
| | | * $config['debug_logger']['sql'] = 'sql'; |
| | | * |
| | | * index.php (just after $RCMAIL->plugins->init()): |
| | | * |
| | |
| | | { |
| | | function init() |
| | | { |
| | | require_once(dirname(__FILE__).'/runlog/runlog.php'); |
| | | $this->runlog = new runlog(); |
| | | require_once(__DIR__ . '/runlog/runlog.php'); |
| | | $this->runlog = new runlog(); |
| | | |
| | | if(!rcmail::get_instance()->config->get('log_dir')){ |
| | | rcmail::get_instance()->config->set('log_dir',INSTALL_PATH.'logs'); |
| | |
| | | $action = rcmail::get_instance()->action; |
| | | $task = rcmail::get_instance()->task; |
| | | if($action){ |
| | | $start_string .= "Action: ".$action.". "; |
| | | $start_string .= "Action: ".$action.". "; |
| | | } |
| | | if($task){ |
| | | $start_string .= "Task: ".$task.". "; |
| | | $start_string .= "Task: ".$task.". "; |
| | | } |
| | | $this->runlog->start($start_string); |
| | | |