diff options
Diffstat (limited to 'framework/Log/TEventLog.php')
-rw-r--r-- | framework/Log/TEventLog.php | 56 |
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 |