summaryrefslogtreecommitdiff
path: root/framework/Log/TEventLog.php
blob: d291d3f5bfb57773c8ea1cca24a4fa59790b1da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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));
	}
}

?>