setLogCb

Description

public function setLogCb(callable $callback): void {}

Set a log callback
You will get events according to the log_level setting

Example

$conf = new SimpleKafkaClient\Configuration();
$conf->setLogCb(
    function (SimpleKafkaClient\Kafka $kafka, int $level, string $facility, string $message) {
        //do something
    }
);