Redefine all loggers.

@param LoggerInterface $logger
161365
public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
        $this->extractor->setLogger($logger);
        $this->httpClient->setLogger($logger);
    }
312051
public function addLogger($loggerName, $logger)
    {
        if ($logger instanceof LoggerInterface) {
            self::$loggers[$loggerName] = $logger;
        } elseif ($this->debug) {
            throw new InvalidServiceException('Logger Service must implement'.__NAMESPACE__.'LoggerInterface');
        }
    }
893405
public static function register(LoggerInterface $logger = null)
    {
        $handler = new static($logger);

        set_error_handler(array($handler, 'handleError'));
        register_shutdown_function(array($handler, 'handleFatalError'));

        set_exception_handler(array($handler, 'handleException'));
    }
575341
public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
        $this->getLogger()->info('ClientHandler is started with pid '.getmypid());
    }
216267
public function purgeAllQueues(LoggerInterface $logger)
    {
        foreach ($this->queueInfo->getQueues()->getRabbitMqQueues() as $rabbitMqQueueTransfer) {
            $this->queueAdapter->purgeQueue($rabbitMqQueueTransfer->getName());
            $logger->info(sprintf('Purge queue "%s" request send.', $rabbitMqQueueTransfer->getName()));
        }

        return true;
    }
1208543
public function setLogger($logger, $checkifexists = false) {
		if ($checkifexists && is_object($this->logger)) {
			return false;
		}
		
		$this->logger = $logger;
		
		return true;
	}
422159
public function setLogger(LoggerInterface $logger)
    {
        if (!$logger instanceof SplObserver) {
            throw new Doozr_Logging_Exception(
                sprintf('Please implement SplObserver before trying to attach your logging.')
            );
        }

        $this->attach($logger);

        return null;
    }
1224531
public function setLoggerInstance(LoggerInterface $LogInterface = null)
    {
        $this->oLog = $LogInterface ?? new \Psr\Log\NullLogger();

        return $this;
    }
701819
public static function setup(LoggerInterface $logger, int $verbosity = 1): void
    {
        self::$logger = $logger;
        self::setVerbosity($verbosity);
    }
283473
public function setLogger($logger = null)
    {

        if ($logger instanceOf \sb\Logger\Base) {
            $this->logger = $logger;
        } else {
            $this->logger = new \sb\Logger\FileSystem();
        }
    }
1054438
protected function setLoggers()
    {
        if ($loggers = $this->hasLoggerConfig()) {
            foreach ($loggers as $channel => $logger) {
                $loggerChannel = $this->getChannelName($logger, $channel);
                $loggerName = $this->getLoggerIdentified($logger, $loggerChannel);
                
                $this->container[$loggerName] = Logger::get(
                    $loggerChannel, 
                    $this->buildHandlers($logger['handlers']??[])
                );
            }
        }
    }
496139
public function setLogger(\sb\Logger\Base $logger, $logname=''){
        $this->logger = $logger;
        $this->log_name = $logname ? $logname : get_called_class();
        $this->log_name = preg_replace("~[^\w+]~", "_", $this->log_name);
    }
718641
def set_logger(self, logger):
        
        self.__logger = logger
        self.session.set_logger(self.__logger)
848065
public function log( \Monolog\Logger $logger) {
        $reflection = new \ReflectionClass($this);
        $logger->error($this->getMessage(), [
            'type' => $reflection->getShortName(),
            'code' => $this->getCode(),
            'line' => $this->getLine(),
            'file' => $this->getFile(),
            'trace' => $this->getTrace(),
            'context' => $this->getContext()
        ]);
    }
356538
public function setLogger(GoracashLogger $logger)
    {
        $this->config->setLoggerClass(get_class($logger));
        $this->logger = $logger;
    }
1294119
public function setLogger(LoggerInterface $logger)
    {
        foreach ($this->adapters as $adapter) {
            if ($adapter instanceof LoggerAwareInterface) {
                $adapter->setLogger($logger);
            }
        }
        $this->logger = $logger;
    }
1333951
public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
        if (isset($logger)) {
            $this->parser->setLogger($logger);
            $this->nsParser->setLogger($logger);
        }
    }