Mock sending message for dev envirement

Hi! I down want to send a message to dev environment
How can I mock GelfHandler() or transport protocol or Publisher()?

$transport = new UdpTransport($graylogConfig['host'], $graylogConfig['port']);
$publisher = new Publisher($transport);
return GelfHandler($publisher);

I find this class, thanks monolog/monolog/src/Monolog/Handler/NullHandler.php

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.