From ee2e653ec9da8cc311989acf6b21b78d32cc80c3 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 7 Feb 2006 16:47:06 +0000 Subject: Added OnExitApplication event to TApplication. --- framework/Log/TLogRouter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'framework/Log/TLogRouter.php') diff --git a/framework/Log/TLogRouter.php b/framework/Log/TLogRouter.php index 4b6141e4..06877f0f 100644 --- a/framework/Log/TLogRouter.php +++ b/framework/Log/TLogRouter.php @@ -68,8 +68,7 @@ class TLogRouter extends TModule throw new TConfigurationException('logrouter_configfile_invalid',$this->_configFile); } $this->loadConfig($config); - $this->getApplication()->attachEventHandler('OnError',array($this,'collectLogs')); - $this->getApplication()->attachEventHandler('OnEndRequest',array($this,'collectLogs')); + $this->getApplication()->attachEventHandler('OnExitApplication',array($this,'collectLogs')); } /** -- cgit v1.2.3