Mock sending message for dev envirement


(Roman) #1

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);

(Roman) #2

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


(system) #3

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