Closed DominicDetta closed 9 months ago
Hey, this can actually be done much simpler by checking the Logger::API
constant - https://github.com/Seldaek/monolog/blob/main/src/Monolog/Logger.php#L103-L109.
I modified the logic as you suggested @itsgoingd
Thanks.
This PR solve the ticket #676 by setting the correct handler in the existing
Clockwork\DataSource\MonologDataSource
by checking whether theAbstractProcessingHandler:write
has a return type.