Method to set property loggers

@param   LoggerInterface[] $loggers

@return  static  Return self to support chaining.
346267
public function setLoggers(array $loggers)
    {
        foreach ($loggers as $channel => $logger) {
            $this->addLogger($channel, $logger);
        }

        return $this;
    }
1096332
public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
        $this->getClient()->setLogger($logger);
    }
952899
public function log($log)
    {
        $type = $log->type();
        if (!isset($this->_logs[$type])) {
            $this->_logs[$type] = [];
        }
        $this->_logs[$type][] = $log;
        return $this;
    }
354583
public static function getLogger($loggerType, $loggerParams = array()) {
        //trap all possible exceptions and throw LoggerException
        try {
            switch ($loggerType) {
                case LOGGER_STDERR:
                    return self::_getLoggerStderr();
                case LOGGER_LEVEL1:
                    return self::_getLoggerLevel1($loggerParams);
                case LOGGER_LEVEL2:
                    return self::_getLoggerLevel2($loggerParams);                
                case LOGGER_LEVEL3:
                    return self::_getLoggerLevel3($loggerParams);              
                case LOGGER_SECURITY:
                    return self::_getLoggerSecurity($loggerParams);
            }            
        } catch (\Exception $logException) {
            throw new LoggerException('Logger caught an exception in '
                . $logException->getTraceAsString() . ':'
                . $logException->getMessage(), 1001);
        }
    }
267224
public function setLogger(LoggerInterface $logger):void{
		$this->logger = $logger;
		$this->driver->setLogger($logger);
		$this->query->setLogger($logger);
	}
1208543
public function setLogger($logger, $checkifexists = false) {
		if ($checkifexists && is_object($this->logger)) {
			return false;
		}
		
		$this->logger = $logger;
		
		return true;
	}
949869
public function setLogger(LoggerInterface $logger)
    {
        parent::setLogger($logger);
        foreach ($this->plugins as $plugin) {
            if (!($plugin instanceof LoggerAwareInterface)) {
                continue;
            }

            $plugin->setLogger($logger);
        }
    }
961336
public function setLogger($logger)
    {
        if (!method_exists($logger, 'info'))
        {
            throw new Exception('logger need have method "info($message)"');
        }
        if (!method_exists($logger, 'error'))
        {
            throw new Exception('logger need have method "error($message)"');
        }
        $this->logger = $logger;
    }
967479
protected function init($config) {
        foreach ($this->loggers as $class => $config) {
            if (!is_array($config)) {
                $class = $config;
                $config = [];
            }
            $instance = $class::get($config);
            if (!is_a($instance, 'mpf\\loggers\\Logger'))
                throw new \Exception("Loggers must extend mpf\\base\\Logger class!");
            $this->loggersInstances[] = $instance;
        }
    }
1341675
protected function _setDefaultHandlers(Logger &$logger)
    {
        if (empty($this->_handlers)) {
            $socketHandler = new NullHandler();
            array_push($this->_handlers, $socketHandler);
        }

        foreach ($this->_handlers as $handler) {
            $logger->pushHandler($handler);
        }
    }
1037141
public function initLogging(array $log_paths): self
    {
        foreach ($log_paths as $logger => $logfile) {
            ('debug' === $logger) && TelegramLog::initDebugLog($logfile);
            ('error' === $logger) && TelegramLog::initErrorLog($logfile);
            ('update' === $logger) && TelegramLog::initUpdateLog($logfile);
        }

        return $this;
    }
538859
public function setLogger(LoggerInterface $logger)
	{
		$this->logger = $logger;

		// Also update the logger of the sender
		if ($this->sender instanceOf LoggerAwareInterface) {
			$this->sender->setLogger($logger);
		}
	}
47406
public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
        if ($this->ownedFactory) {
            $this->readerFactory->setLogger($logger);
        }
    }
414797
def clearLoggers(self, logger):
        
        for logger in self._loggers:
            if logger == 'root':
                logger = logging.getLogger()
            else:
                logger = logging.getLogger(logger)
            logger.removeHandler(self.handler())
        
        self._loggers = set()
611449
def set_loggers_from_config(config=None):
    
    config = config or app_config.logging
    for lname, lconfig in config.get('loggers', {}).iteritems():
        if 'level' in lconfig:
            level = getattr(logging, lconfig.level)
            assert isinstance(level, int)
            logger = logging.getLogger(lname)
            logger.setLevel(level)
977421
public function registerAll(array $loggers)
    {
        foreach($loggers as $key => $logger){
            $this->loggers[$key] = $logger;
            $logger->writeHeader();
        }
    }
555296
public function setLogger(LoggerInterface $logger)
    {
        if ($this->handler) {
            throw new AlreadyBuildedException('The handler already builded.');
        }

        $this->logger = $logger;

        return $this;
    }