diff options
author | wei <> | 2006-01-05 01:13:15 +0000 |
---|---|---|
committer | wei <> | 2006-01-05 01:13:15 +0000 |
commit | 77750ab4cc4c0055a29352334a9357d74e3957d3 (patch) | |
tree | 193b2956bb39d69a406196598146e328d3bbb867 /framework/core.php | |
parent | 4ab3e2865788db181a0d4d6d3b459123df43d2b5 (diff) |
coreLog instrumentation.
Diffstat (limited to 'framework/core.php')
-rw-r--r-- | framework/core.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/core.php b/framework/core.php index 5c9156e5..b2ae1d45 100644 --- a/framework/core.php +++ b/framework/core.php @@ -42,6 +42,8 @@ require_once(PRADO_DIR.'/Data/TXmlDocument.php'); */
require_once(PRADO_DIR.'/Web/THttpUtility.php');
+require_once(PRADO_DIR.'/Log/ILog.php');
+
/**
* IModule interface.
*
@@ -770,6 +772,16 @@ class PradoBase }
return $language;
}
+
+ public static function coreLog($msg=null)
+ {
+ static $logger;
+ if(is_null($logger))
+ $logger = new TInternalLogger();
+ if(!empty($msg))
+ $logger->info($msg);
+ return $logger;
+ }
}
?>
\ No newline at end of file |