29 public function handle(array $record)
37 $record[
'formatted'] = $this->
getFormatter()->format($record);
39 $this->
write($record);
50 abstract protected function write(array $record);
60 if ($this->processors) {
61 foreach ($this->processors as $processor) {
62 $record = call_user_func($processor, $record);
An exception for terminatinating execution or to throw for unit testing.
Base Handler class providing the Handler structure.
getFormatter()
{Gets the formatter.FormatterInterface}
isHandling(array $record)
{Checks whether the given record will be handled by this handler.This is mostly done for performance ...
Base Handler class providing the Handler structure.
handle(array $record)
{Handles a record.All records may be passed to this method, and the handler should discard those that...
processRecord(array $record)
Processes a record.
write(array $record)
Writes the record down to the log of the implementing handler.
Handler or Processor implementing this interface will be reset when Logger::reset() is called.