You are here

public static function LagoonLogsLoggerFactory::getHostProcessIndex in Lagoon Logs 8

1 call to LagoonLogsLoggerFactory::getHostProcessIndex()
LagoonLogsLoggerFactory::create in src/Logger/LagoonLogsLoggerFactory.php

File

src/Logger/LagoonLogsLoggerFactory.php, line 25

Class

LagoonLogsLoggerFactory

Namespace

Drupal\lagoon_logs\Logger

Code

public static function getHostProcessIndex(ConfigFactoryInterface $config) {
  return implode('-', [
    getenv('LAGOON_PROJECT') ?: self::LAGOON_LOGS_DEFAULT_LAGOON_PROJECT,
    getenv('LAGOON_GIT_SAFE_BRANCH') ?: self::LAGOON_LOGS_DEFAULT_SAFE_BRANCH,
  ]);
}