malkusch\lock\mutex\RedisMutex::setLogger PHP Method

setLogger() public method

RedLock is a fault tolerant lock algorithm. I.e. it does tolerate failing redis connections without breaking. If you want to get notified about such events you'll have to provide a logger. Those events will be logged as warnings.
public setLogger ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface The logger.
    public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
    }