/
Logger.interface.php
46 lines (42 loc) · 1.11 KB
/
Logger.interface.php
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
<?php
/**
* PandraLogger
*
* Logger interface. Static 'Log' class expects loggers to use this interface.
*
* @author Michael Pearson <pandra-support@phpgrease.net>
* @copyright 2010 phpgrease.net
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
* @version 0.2.1
* @package pandra
* @abstract
*/
interface PandraLogger {
/**
* Class constructor
* @access public
* @param array $params parameters to child constructor
*/
public function __construct(array $params);
/**
* Logger is open and available
* @access public
* @return bool Logger constructed OK, is ready
*/
public function isOpen();
/**
* Child will log for priority level
* @access public
* @param int $priority priority to question for
* @return bool priority is OK
*/
public function isPriorityLogger($priority);
/**
* Execute the logging function
* @access public
* @param int $priority priority to log for
* @param string $message Message to log
*/
public function execute($priority, $message);
}
?>