Get log manager

If no log manager has been set, this method will
set and return a default log manager, if any such
value is available

@see getDefaultLogManager()

@return LogManager|null log manager or null if none log manager has been set
196208
public function getLogManager(): ?LogManager
    {
        if (!$this->hasLogManager()) {
            $this->setLogManager($this->getDefaultLogManager());
        }
        return $this->logManager;
    }
884730
public function getLogger() {
	    if ($this->logger) {
	        return $this->logger;
	    }
		$this->setLogger(CoreLib\getLogger());
		return $this->logger;
	}
152797
public function loggerFactory()
	{
		if(!isset($this->_loggerFactory))
		{
			$this->_loggerFactory = new Logging\DefaultLoggerFactory();
		}

		return $this->_loggerFactory;
	}
572580
public function getLogger() {
		if (is_object($this->logger)) {
			return $this->logger;
		}
		if (property_exists($this,'application') && is_object($this->application)) {
			return $this->application->getLogger();
		}
		return null;
	}
143254
public static function getLogger()
    {
        if (!self::$_logger) {
            if ($zfdebug = Zend_Controller_Front::getInstance()->getPlugin('ZFDebug_Controller_Plugin_Debug')) {
                self::$_logger = $zfdebug->getPlugin('Log')->getLog();
            } else {
                return false;
            }
        }
        return self::$_logger;
    }
522861
public static LogWatchBuilder getDefault() {
        final ServiceLoader<LogWatchBuilder> ldr = ServiceLoader.load(LogWatchBuilder.class);
        if (!ldr.iterator().hasNext()) {
            throw new IllegalStateException("No LogWatchBuilder implementation registered.");
        }
        return ldr.iterator().next();
    }
803446
public function getDefault()
    {
        $category = $this->getCategory();

        $categoryConfig = $this->getCategoryConfig($category);

        if (!isset($categoryConfig[ModelInterface::DEFAULT_CONTEXT])) {
            throw new DefaultMissingException(
                'ConfigModel requires default to be set'
            );
        }

        return $categoryConfig[ModelInterface::DEFAULT_CONTEXT];
    }
42880
public function getLogger($name = LoggerUtils::SYSTEM_LOGGER)
    {
        if (isset($this->loggers[$name])) {
            return $this->loggers[$name];
        }
        return null;
    }
516099
private function _getLogFileName()
    {
        static $logFileName = null;
        if (null == $logFileName) {
            $logFileName = $this->getUserHome().self::DEFAULT_LOG;
        }
        return $logFileName;
    }
900881
protected function getManager()
	{
		if( $this->manager === null ) {
			$this->manager = \Aimeos\MAdmin\Cache\Manager\Factory::createManager( $this->getContext() );
		}

		return $this->manager;
	}
647142
public function getLogger($name = null)
    {
        if (null === $name && !isset($this->loggers['nullLogger'])) {
            $this->createNullLogger();
            $name = 'nullLogger';
        }

        return $this->loggers[$name];
    }
41210
private function setLogger() {

        $config = $this->getConfig();

        if($config->offsetExists('errors') === true && $config->errors === true) {
            $this->logger = new FileAdapter($this->getConfig()->errorLog);
        }

        return $this;
    }
304085
public function getLocationManager()
    {
        if ($this->locationManager != null) {
            return $this->locationManager;
        }

        $this->locationManager = new LocationManager($this->getLocationService(), $this->getContentService());

        if ($this->logger) {
            $this->locationManager->setLogger($this->logger);
        }

        return $this->locationManager;
    }
1362760
public function getLog(string $logger = 'default'): LoggerInterface
    {
        if (!isset($this->loggers[$logger])) {
            if ($logger === 'default') {
                if (!isset($this->implicit['logger'])) {
                    throw new \RuntimeException('The default logger was not set');
                }
                $this->loggers[$logger] = $this->implicit['logger'];
            } else {
                $this->loggers[$logger] = $this->getCollector()->getLogger($logger);
            }
        }

        return $this->loggers[$logger];
    }
519325
public Logger logger() {
        if (logger == null) {
            logger = LoggerFactory.getLogger(this.getClass().getName());
        }
        return logger;
    }
933371
public function logger($name = null)
	{
		$name = $name ?: $this->getDefaultLog();

		// If the given driver has not been created before, we will create the instances
		// here and cache it so we can return it next time very quickly. If there is
		// already a driver created by this name, we'll just return that instance.
		if (! isset($this->loggers[$name]))
		{
			$this->loggers[$name] = $this->createLog($name);
		}

		return $this->loggers[$name];
	}
91832
protected static function createDefaultLogger()
    {
        $handler = new StreamHandler(sys_get_temp_dir().'/logs/yansongda.pay.log');
        $handler->setFormatter(new LineFormatter("%datetime% > %level_name% > %message% %context% %extra%\n\n"));

        $logger = new Logger('yansongda.pay');
        $logger->pushHandler($handler);

        return $logger;
    }