/
LoggerInterface.php
108 lines (100 loc) · 3.1 KB
/
LoggerInterface.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
/**
* File defining Backend\Interfaces\LoggerInterface.
*
* PHP Version 5.3
*
* Copied from the Symfony 2 Project.
*
* @category Backend
* @package Interfaces
* @author Fabien Potencier <fabien@symfony.com>
* @copyright Fabien Potencier <fabien@symfony.com>
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link https://raw.github.com/symfony/HttpKernel/master/Log/LoggerInterface.php
*/
namespace Backend\Interfaces;
/**
* Logging interface through which messages can be logged.
*
* @category Backend
* @package Interfaces
* @author Fabien Potencier <fabien@symfony.com>
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link https://raw.github.com/symfony/HttpKernel/master/Log/LoggerInterface.php
*/
interface LoggerInterface
{
/**
* Adds a log record at the EMERGENCY level.
*
* @param string $message The log message
* @param array $context The log context
*
* @return boolean Whether the record has been processed
*/
public function emerg($message, array $context = array());
/**
* Adds a log record at the ALERT level.
*
* @param string $message The log message
* @param array $context The log context
*
* @return boolean Whether the record has been processed
*/
public function alert($message, array $context = array());
/**
* Adds a log record at the CRITICAL level.
*
* @param string $message The log message
* @param array $context The log context
*
* @return boolean Whether the record has been processed
*/
public function crit($message, array $context = array());
/**
* Adds a log record at the ERROR level.
*
* @param string $message The log message
* @param array $context The log context
*
* @return boolean Whether the record has been processed
*/
public function err($message, array $context = array());
/**
* Adds a log record at the WARNING level.
*
* @param string $message The log message
* @param array $context The log context
*
* @return boolean Whether the record has been processed
*/
public function warn($message, array $context = array());
/**
* Adds a log record at the NOTICE level.
*
* @param string $message The log message
* @param array $context The log context
*
* @return boolean Whether the record has been processed
*/
public function notice($message, array $context = array());
/**
* Adds a log record at the INFO level.
*
* @param string $message The log message
* @param array $context The log context
*
* @return boolean Whether the record has been processed
*/
public function info($message, array $context = array());
/**
* Adds a log record at the DEBUG level.
*
* @param string $message The log message
* @param array $context The log context
*
* @return boolean Whether the record has been processed
*/
public function debug($message, array $context = array());
}