src/Traits/Logging/LogManagerTrait.php
public function getLogManager(): ?LogManager
    {
        if (!$this->hasLogManager()) {
            $this->setLogManager($this->getDefaultLogManager());
        }
        return $this->logManager;
    }
public function getLogManager(): ?LogManager
    {
        if (!$this->hasLogManager()) {
            $this->setLogManager($this->getDefaultLogManager());
        }
        return $this->logManager;
    }
public function getLogManager ( ) : ? LogManager { if ( ! $ this -> hasLogManager ( ) ) { $ this -> setLogManager ( $ this -> getDefaultLogManager ( ) ) ; } return $ this -> logManager ; }
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
Get log manager