summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2006-01-08 18:13:02 +0000
committerxue <>2006-01-08 18:13:02 +0000
commit09596d92b2eea0f70c98cc5abca6f5dbd4629802 (patch)
tree3e1c656d18ee46510bd76033e7b36ca2bd4dc05d /framework/TApplication.php
parent4a2c7c4e9ac75c1420e95624fb9ee34ab178c52f (diff)
Completed TLogger, TLogRouter, TFileLogRoute, TEmailLogRoute
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 4d773d7b..d8214f09 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -308,7 +308,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");
+ Prado::trace("Executing $method",'System.TApplication');
$this->$method($this);
if($this->_requestCompleted && $this->_step<$n-1)
$this->_step=$n-1;
@@ -699,7 +699,8 @@ class TApplication extends TComponent
*/
protected function initApplication()
{
- Prado::coreLog("Initializing application");
+ Prado::trace('Initializing application','System.TApplication');
+
Prado::setPathOfAlias('Application',$this->_basePath);
if($this->_configFile===null)
@@ -758,7 +759,8 @@ class TApplication extends TComponent
$this->_modules=array();
foreach($config->getModules() as $id=>$moduleConfig)
{
- Prado::coreLog("Creating module $id");
+ Prado::trace("Loading module $id ({$moduleConfig[0]})",'System.TApplication');
+
$module=Prado::createComponent($moduleConfig[0]);
$this->_modules[$id]=$module;
foreach($moduleConfig[1] as $name=>$value)