1 | <?php |
||
34 | class LogEntry extends ObjectAbstract implements LogEntryInterface |
||
35 | { |
||
36 | /** |
||
37 | * @var string |
||
38 | * @access protected |
||
39 | */ |
||
40 | protected $channel; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | * @access protected |
||
45 | */ |
||
46 | protected $message; |
||
47 | |||
48 | /** |
||
49 | * @var string |
||
50 | * @access protected |
||
51 | */ |
||
52 | protected $level; |
||
53 | |||
54 | /** |
||
55 | * @var array |
||
56 | * @access protected |
||
57 | */ |
||
58 | protected $context; |
||
59 | |||
60 | /** |
||
61 | * @var float |
||
62 | * @access protected |
||
63 | */ |
||
64 | protected $timestamp; |
||
65 | |||
66 | /** |
||
67 | * is log stopped propagation ? |
||
68 | * |
||
69 | * @var bool |
||
70 | * @access protected |
||
71 | */ |
||
72 | protected $stopped = false; |
||
73 | |||
74 | /** |
||
75 | * Create the log entry |
||
76 | * |
||
77 | * @param string $channel |
||
78 | * @param string $level |
||
79 | * @param string $message |
||
80 | * @param array $context |
||
81 | * @param float $timestamp |
||
82 | * @throws InvalidArgumentException if level invalid |
||
83 | * @access protected |
||
84 | */ |
||
85 | public function __construct( |
||
99 | |||
100 | /** |
||
101 | * {@inheritDoc} |
||
102 | */ |
||
103 | public function setChannel( |
||
109 | |||
110 | /** |
||
111 | * {@inheritDoc} |
||
112 | */ |
||
113 | public function getChannel()/*# : string */ |
||
117 | |||
118 | /** |
||
119 | * {@inheritDoc} |
||
120 | */ |
||
121 | public function setMessage( |
||
127 | |||
128 | /** |
||
129 | * {@inheritDoc} |
||
130 | */ |
||
131 | public function getMessage()/*# : string */ |
||
135 | |||
136 | /** |
||
137 | * {@inheritDoc} |
||
138 | */ |
||
139 | public function setLevel( |
||
151 | |||
152 | /** |
||
153 | * {@inheritDoc} |
||
154 | */ |
||
155 | public function getLevel()/*# : string */ |
||
159 | |||
160 | /** |
||
161 | * {@inheritDoc} |
||
162 | */ |
||
163 | public function setTimestamp( |
||
169 | |||
170 | /** |
||
171 | * {@inheritDoc} |
||
172 | */ |
||
173 | public function getTimestamp()/*# : float */ |
||
177 | |||
178 | /** |
||
179 | * {@inheritDoc} |
||
180 | */ |
||
181 | public function setContext(array $context) |
||
186 | |||
187 | /** |
||
188 | * {@inheritDoc} |
||
189 | */ |
||
190 | public function getContext()/*# : array */ |
||
194 | |||
195 | /** |
||
196 | * {@inheritDoc} |
||
197 | */ |
||
198 | public function stopPropagation(/*# : bool */ $flag = true) |
||
203 | |||
204 | /** |
||
205 | * {@inheritDoc} |
||
206 | */ |
||
207 | public function isPropagationStopped()/*# : bool */ |
||
211 | |||
212 | /** |
||
213 | * Use the default formatter |
||
214 | * |
||
215 | * {@inheritDoc} |
||
216 | */ |
||
217 | public function __toString()/*# : string */ |
||
222 | } |
||
223 |