Return the Log instance.

@return \Eyewitness\Eye\Monitors\Log
434276
public function log()
    {
        if (is_null($this->log)) {
            $this->log = app(Log::class);
        }

        return $this->log;
    }
546333
public static function getInstance()
    {
        $self = get_called_class();
        if (!isset(self::$instances[$self])) {
            self::$instances[$self] = new $self;
        }
        return self::$instances[$self];
    }
1325600
public function logger()
	{
		if(!isset($this->_logger))
		{
			$this->_logger = new Logging\LoggerMultiplexer();
		}

		return $this->_logger;
	}
1153620
public function getLogger() {
		if(!$this->isInDB()) {
			throw new RuntimeException("Can't write to a log file until we know the database ID.");
		}

		if(!$this->Environment()) {
			throw new RuntimeException("Can't write to a log file until we have an Environment.");
		}

		if($this->Environment() && !$this->Environment()->Project()) {
			throw new RuntimeException("Can't write to a log file until we have the Environment's project.");
		}

		$environment = $this->Environment();
		$project = $this->Environment()->Project();
		$filename = sprintf('%s.pipeline.%d.log', $environment->getFullName('.'), $this->ID);

		return Injector::inst()->createWithArgs('DeploynautLogFile', array($filename));
	}
736845
public function getLogger()
    {
        if (null === $this->logger) {
            return Propel::getServiceContainer()->getLogger($this->getName());
        }

        return $this->logger;
    }
1031012
public function makeLog()
    {
        $log = new CompetencyProgressLog();
        $log->setCompetency($this->competency);
        $log->setUser($this->user);
        $log->setPercentage($this->percentage);
        $log->setDate($this->date);

        if ($this->level) {
            $log->setLevel($this->level);
        }

        return $log;
    }
70982
public function getLogBuilder()
    {
        if (!is_object($this->_logBuilder)) {
            $this->_logBuilder = Yii::createObject($this->_logBuilder);
        }
        return $this->_logBuilder;
    }
918987
final public static function getInstance() {
	
		if (NULL == self::$instance) {
			self::$instance = new self();
			self::$instance->startChrono();
		}
		
		return self::$instance;
	
	}
358394
protected function createEmergencyLogger()
    {
        return new Logger(
            new Monolog(
                'zilf', $this->prepareHandlers(
                    [new StreamHandler(
                        Zilf::$app->runtimePath() . '/logs/zilf.log', $this->level(['level' => 'debug'])
                    )]
                )
            )
        );
    }
1340821
protected function getResourceLog()
    {
        if (($log = \Arbit\VCSWrapper\Cache\Manager::get($this->path, $this->currentVersion, 'log')) === false) {
            $svnLog = svn_log($this->root . $this->path);

            $log = array();
            foreach ($svnLog as $nr => $entry) {
                $log[$entry['rev']] = new \Arbit\VCSWrapper\LogEntry(
                    $entry['rev'],
                    $entry['author'],
                    $entry['msg'],
                    strtotime($entry['date'])
                );
            }
            uksort($log, array($this, 'compareVersions'));
            $last = end($log);

            \Arbit\VCSWrapper\Cache\Manager::cache($this->path, $this->currentVersion = (string) $last->version, 'log', $log);
        }

        return $log;
    }
537084
private Logging getLogging() {
    if (logging == null) {
      synchronized (this) {
        if (logging == null) {
          logging = loggingOptions.getService();
        }
      }
    }
    return logging;
  }
245045
protected function getResourceLog()
    {
        $log = \Arbit\VCSWrapper\Cache\Manager::get($this->path, $this->currentVersion, 'log');
        if ($log === false) {
            // Refetch the basic logrmation, and cache it.
            $process = new \Arbit\VCSWrapper\BzrCli\Process();
            $process->workingDirectory($this->root);

            // Execute log command
            $process->argument('xmllog');
            $process->argument('--forward'); // why reverse it when we can get them in order anyway?
            $process->argument('-q'); // quiet, don't show extra status stuff
            // Fetch for specified version, if set
            if ($this->currentVersion !== null) {
                $process->argument('-r ' . $this->currentVersion);
            }

            $process->argument(new \SystemProcess\Argument\PathArgument('.' . $this->path));

            $process->execute();

            // Parse commit log
            $xmlDoc = new \SimpleXMLElement($process->stdoutOutput);

            $lineCount  = count($xmlDoc->log);
            $log        = array();
            $lastCommit = null;
            foreach($xmlDoc->log as $entry) {
                $revno = $entry->revno;
                $author = $entry->committer;
                $date = strtotime($entry->timestamp);
                $desc = $entry->message;

                $newEntry = new \Arbit\VCSWrapper\LogEntry($revno, $author, $desc, $date);
                $log[(string) $revno] = $newEntry;
            }
            $last = end($log);

            $this->currentVersion = (string) $last->version;
            // Cache extracted data
            \Arbit\VCSWrapper\Cache\Manager::cache($this->path, $this->currentVersion, 'log', $log);
        }

        return $log;
    }
58954
public static function instance()
    {
        if (null === self::$_instance) {
            $logger = new Monolog(Config::read('app.id'));
            $file_handler = new StreamHandler(self::getFilepath());
            $logger->pushHandler($file_handler);

            self::$_instance = $logger;
        }
        return self::$_instance;
    }
1155784
protected function getLogs(): array
	{
		if ($this->logs === null) {
			$this->logs = $this->readLogs();
		}
		return $this->logs;
	}
693024
public function log()
    {
        if ($this->log === null) {
            $this->log = $this->config()->defaultLog();
        }
        return $this->log;
    }
1258191
protected function getLogger()
    {
        if (!isset($this->logger)) {
            // When no logger is injected, create a new one
            // that doesn't do anything
            $this->logger = new Logger('api-client');
            $this->logger->setHandlers([
                new NullHandler(),
            ]);
        }

        return $this->logger;
    }
660941
public static function getLogger()
    {
        $logger = null;
        try {
            $logger = Injector::inst()->get('SilverStripe\Omnipay\Logger');
        } catch (NotFoundExceptionInterface $e) {
            /* no op */
        }
        return $logger;
    }