From 77750ab4cc4c0055a29352334a9357d74e3957d3 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 5 Jan 2006 01:13:15 +0000 Subject: coreLog instrumentation. --- framework/TApplication.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'framework/TApplication.php') diff --git a/framework/TApplication.php b/framework/TApplication.php index 60fc25b3..0e808858 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -35,6 +35,7 @@ require_once(PRADO_DIR.'/Security/TAuthorizationRule.php'); */ require_once(PRADO_DIR.'/Web/Services/TPageService.php'); + /** * TApplication class. * @@ -301,6 +302,7 @@ class TApplication extends TComponent if($this->_mode===self::STATE_OFF) throw new THttpException(503,'application_service_unavailable'); $method='on'.self::$_steps[$this->_step]; + Prado::coreLog("Executing $method"); $this->$method($this); if($this->_requestCompleted && $this->_step<$n-1) $this->_step=$n-1; @@ -709,6 +711,7 @@ class TApplication extends TComponent */ protected function initApplication() { + Prado::coreLog("Initializing application"); Prado::setPathOfAlias('Application',$this->_basePath); if($this->_configFile===null) @@ -730,7 +733,7 @@ class TApplication extends TComponent fclose($fp); } else - syslog(LOG_WARNING,'Prado application config cache file "'.$this->_cacheFile.'" cannot be created.'); + syslog(LOG_WARNING, 'Prado application config cache file "'.$this->_cacheFile.'" cannot be created.'); } } else @@ -767,6 +770,7 @@ class TApplication extends TComponent $this->_modules=array(); foreach($config->getModules() as $id=>$moduleConfig) { + Prado::coreLog("Creating module $id"); $module=Prado::createComponent($moduleConfig[0]); $this->_modules[$id]=$module; foreach($moduleConfig[1] as $name=>$value) -- cgit v1.2.3