public function setupLogging(LoggerInterface $logger, array $incrementalAttributesToLog = ['dn'])
    {
        if (empty($incrementalAttributesToLog)) {
            throw new InvalidArgumentException('List of entry attributes to be logged during incremental sync cannot be empty');
        }
        $this->logger                     = $logger;
        $this->incrementalAttributesToLog = $incrementalAttributesToLog;
    }
public function setupLogging(LoggerInterface $logger, array $incrementalAttributesToLog = ['dn'])
    {
        if (empty($incrementalAttributesToLog)) {
            throw new InvalidArgumentException('List of entry attributes to be logged during incremental sync cannot be empty');
        }
        $this->logger                     = $logger;
        $this->incrementalAttributesToLog = $incrementalAttributesToLog;
    }
public function setupLogging ( LoggerInterface $ logger , array $ incrementalAttributesToLog = [ 'dn' ] ) { if ( empty ( $ incrementalAttributesToLog ) ) { throw new InvalidArgumentException ( 'List of entry attributes to be logged during incremental sync cannot be empty' ) ; } $ this -> logger = $ logger ; $ this -> incrementalAttributesToLog = $ incrementalAttributesToLog ; }
Enables and adjusts logging

@param LoggerInterface $logger
@param array           $incrementalAttributesToLog

@throws InvalidArgumentException in case of empty $incrementalAttributesToLog
Enables and adjusts logging