PHPDebugBar Adapter

This adapter sends log messages to the PHPDebugBar data collector. For more information on PHPDebugBar, see the PHPDebugBar documentation.

A simple example:

1
2
3
4
5
6
7
8
<?php
$debugbar = new \DebugBar\StandardDebugBar();
$collector = $debugbar['messages'];

$adapter = new \Vespula\Log\Adapter\DebugBar($collector);
$log = new \Vespula\Log\Log($adapter);

$log->info('My informative message');