From 9239a57ab827b65e166dc98ee2811d9eb531497b Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Fri, 9 Dec 2011 21:18:51 +0000 Subject: [PATCH] Add support for a logger in the index.php bootstrap. --- document_root/index.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/document_root/index.php b/document_root/index.php index 8bd5a9d9..9256bf5a 100644 --- a/document_root/index.php +++ b/document_root/index.php @@ -54,18 +54,14 @@ if ($config->log instanceof Zend_Config) { $log->addWriter(new Zend_Log_Writer_Stream($config->log->stream)); } if ($config->log->firebug) { - echo 'yes' . PHP_EOL; $log->addWriter(new Zend_Log_Writer_Firebug()); } if ($config->log->syslog instanceof Zend_Config) { - print_r($config->log->syslog); $log->addWriter(new Zend_Log_Writer_Syslog($config->log->syslog->toArray())); } } -$log->log('nope', Zend_Log::WARN); Zend_Registry::set('log', $log); - Zend_Layout::startMvc(); $layout = Zend_Layout::getMvcInstance(); $layout->setLayoutPath(MODULES_DIR . '/default/views/scripts'); -- GitLab