Added listener support

Possibility to add a listener for a specific event

$debug->addListener("event", function($text) {
     echo $text;
});
Merge pull request #1 from oli-f/patch-1

Added listener support