From 77750ab4cc4c0055a29352334a9357d74e3957d3 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 5 Jan 2006 01:13:15 +0000 Subject: coreLog instrumentation. --- framework/core.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'framework/core.php') 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 -- cgit v1.2.3