This looks great. Thanks, Michael. On Thu, Aug 11, 2011 at 7:33 AM, [email protected] <[email protected]>wrote:
> I created a set of classes to listen for and process supervisor events in > PHP. You can find the project page here: > https://github.com/mtdowling/php-supervisor-event > > Here's a simple example script that logs events to stderr. > > <?php > > // include the phar file > require_once '/path/to/build/php-supervisor-event.phar'; > > use Supervisor\EventListener; > use Supervisor\EventNotification; > > $listener = new Supervisor\EventListener(); > $listener->listen(function(EventListener $listener, EventNotification > $event) { > $listener->log($event->getEventName()); > $listener->log($event->getServer()); > $listener->log($event->getPool()); > $listener->log(var_export($event->getData(), true)); > return true; > }); > > I hope someone will find this helpful. Any feedback is welcome. > > Thanks, > Michael > > > _______________________________________________ > Supervisor-users mailing list > [email protected] > http://lists.supervisord.org/mailman/listinfo/supervisor-users >
_______________________________________________ Supervisor-users mailing list [email protected] http://lists.supervisord.org/mailman/listinfo/supervisor-users
