Returns the logger prefix to use

@return mixed|string
194351
public function getPrefix()
    {
        if (is_null($this->_prefix)) {
            $hostName = gethostname();
            try {
                $this->_prefix = Configuration::get('config')
                    ->get('logger.prefix', $hostName);
            } catch(FileNotFoundException $exp) {
                $this->_prefix = $hostName;
            }

        }
        return $this->_prefix;
    }
81837
public function logger()
    {
        if (is_null($this->logger)) {
            $this->logger = app(Logger::class);
        }

        return $this->logger;
    }
471575
public function getCommonPrefix()
    {
        if ($this->count() == 0) {
            return null;
        }

        $commonPath = $this->reduce(function ($commonPath, FileNodeInterface $file) {
            if (is_null($commonPath)) {
                return $file->getPath();
            }
            return $this->getCommonPrefixString($commonPath, $file->getPath());
        });

        return (strlen($commonPath) > 0) ? $commonPath : null;
    }
384937
public function getBlockPrefix()
    {
        $rc = new \ReflectionClass($this);

        // Non-greedy ("+?") to match "type" suffix, if present
        $fqcn = preg_replace(
            array('/([^\\\\])(Bundle)?\\\\Form\\\\Type(\\\\[^\\\\]+?)(Type)?$/i', '/\\\\/'),
            array('\\1\\3', '_'),
            $rc->getName()
        );

        return strtolower($fqcn);
    }
1003577
private String getLoggerName(String xrLoggerName) {

        String result = LOGGER_NAME_MAP.get(xrLoggerName);
        if (result != null) {
            return OCMS_PREFIX + result;
        } else {
            return OCMS_PREFIX + DEFAULT_LOGGER_NAME;
        }
    }
655417
private function getLogFileName() : string
    {
        $file_name = $this->file_name;
        if ($this->filename_processor){
            $file_name = $this->filename_processor->process($file_name);
        }
        $file_name = self::escapeFileName($file_name);
        return $file_name;
    }
606875
public function getLogger()
    {
        if (is_null($this->logger)) {
            if ($this->getContainer()->has('logger')) {
                return $this->getContainer()->get('logger');
            } else if ($this->getContainer()->has('Psr\Log\LoggerInterface')) {
                return $this->getContainer()->get('Psr\Log\LoggerInterface');
            } else if (class_exists('Monolog\Logger')) {
                $this->getContainer()->addServiceProvider(new \Laasti\Log\MonologProvider);
                return $this->getContainer()->get('logger');

            }
        }

        return $this->logger;
    }
783695
public function getLastGroupPrefix()
    {
        if (! empty($this->groupStack)) {
            $last = end($this->groupStack);

            return isset($last['prefix']) ? $last['prefix'] : '';
        }

        return '';
    }
180249
protected function getLoggerCallable()
    {
        if (!is_callable($this->loggerCallable)) {
            $loggerCallable = $this->getOption('logger_callable');

            if (is_callable($loggerCallable)) {
                $this->loggerCallable = $loggerCallable;
            }
        }

        return $this->loggerCallable;
    }
536794
protected function getLogger()
    {
        if ($this->container->has('logger')) {
            $logger = $this->container->get('logger');
            \assert($logger instanceof LoggerInterface);

            return $logger;
        }

        return new NullLogger();
    }
1204353
public function prefix($prefix = null)
    {
        if (null !== $prefix) {
            $this->prefix = substr(md5($prefix), 0, 10) . '_';
        }

        return $this->prefix;
    }
13504
public function getEventPrefix() {
    static $prefix;
    if (!$prefix) {
      if (defined(static::class.'::EVENT_PREFIX'))
        $prefix = static::EVENT_PREFIX;
      else
        $prefix = strtolower(array_slice(explode('\\', static::class), -1)[0]);
    }
    return $prefix;
  }
346436
public function getRoutePrefix()
    {
        if (!$this->_routePrefix) {
            $this->_routePrefix = Configs::instance()->advanced ? self::PREFIX_ADVANCED : self::PREFIX_BASIC;
        }
        return $this->_routePrefix;
    }
948955
public function getPrefix()
  {
    $uuid = uniqid(static::CACHE_CHECK_PREFIX, true);
    $prefix = wp_cache_get($this->prefix, static::CACHE_GROUP_KEY, false, $uuid);

    if ($prefix !== $uuid) {
      return $prefix;
    }

    $this->setPrefix($this->prefix);
    return $this->getPrefix();
  }
1355751
public function prefix(): string
    {
        if ($this->App->Config->§specs['§is_network_wide'] && $this->Wp->is_multisite) {
            return $this->wp->base_prefix.$this->App->Config->©brand['©var'].'_';
        } else {
            return $this->wp->prefix.$this->App->Config->©brand['©var'].'_';
        }
    }
1098964
public function getPrefix()
    {
        $paths = explode('/', $this->getName());

        array_pop($paths);

        return strtolower(implode('\\', $paths));
    }
890165
public function getPrefix()
    {
        $params = $this->Controller->request->params;
        if (key_exists('prefix', $params)) {
            $prefix = $params['prefix'];
            if ($prefix) {
                return $prefix;
            }
        }
        return false;
    }