summaryrefslogtreecommitdiff
path: root/framework/Log/TEventLog.php
diff options
context:
space:
mode:
authorwei <>2006-01-04 08:10:56 +0000
committerwei <>2006-01-04 08:10:56 +0000
commit3628bfe141ef02299beb9514397cfc2c27a7dcb1 (patch)
treee1b09079bee418e45af6c49314a9f0fec5cf2012 /framework/Log/TEventLog.php
parent0ebae0856a5ed24bcc1b01d13d8715288f39a08d (diff)
adding TEventLog using ezcLog from ezComponents.
Diffstat (limited to 'framework/Log/TEventLog.php')
-rw-r--r--framework/Log/TEventLog.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/framework/Log/TEventLog.php b/framework/Log/TEventLog.php
new file mode 100644
index 00000000..d291d3f5
--- /dev/null
+++ b/framework/Log/TEventLog.php
@@ -0,0 +1,56 @@
+<?php
+
+require_once(dirname(__FILE__).'/TLog.php');
+require_once(dirname(__FILE__).'/TEzcLogger.php');
+
+/**
+ * ${classname}
+ *
+ * ${description}
+ *
+ * @author Wei Zhuo<weizhuo[at]gmail[dot]com>
+ * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $
+ * @package ${package}
+ */
+class TEventLog extends TEzcLogger implements TLog
+{
+
+ public function info($msg, $source='Prado', $category='main')
+ {
+ ezcLog::getInstance()->log($msg, ezcLog::INFO,
+ array('source'=>$source, 'category'=>$category));
+ }
+
+ public function debug($msg, $source='Prado', $category='main')
+ {
+ ezcLog::getInstance()->log($msg, ezcLog::DEBUG,
+ array('source'=>$source, 'category'=>$category));
+ }
+
+ public function notice($msg, $source='Prado', $category='main')
+ {
+ ezcLog::getInstance()->log($msg, ezcLog::NOTICE,
+ array('source'=>$source, 'category'=>$category));
+ }
+
+ public function warn($msg, $source='Prado', $category='main')
+ {
+ ezcLog::getInstance()->log($msg, ezcLog::WARNING,
+ array('source'=>$source, 'category'=>$category));
+ }
+
+ public function error($msg, $source='Prado', $category='main')
+ {
+ ezcLog::getInstance()->log($msg, ezcLog::NOTICE,
+ array('source'=>$source, 'category'=>$category));
+
+ }
+
+ public function fatal($msg, $source='Prado', $category='main')
+ {
+ ezcLog::getInstance()->log($msg, ezcLog::NOTICE,
+ array('source'=>$source, 'category'=>$category));
+ }
+}
+
+?> \ No newline at end of file