You are here

public static function LagoonLogsLoggerFactory::create in Lagoon Logs 8

1 string reference to 'LagoonLogsLoggerFactory::create'
lagoon_logs.services.yml in ./lagoon_logs.services.yml
lagoon_logs.services.yml

File

src/Logger/LagoonLogsLoggerFactory.php, line 15

Class

LagoonLogsLoggerFactory

Namespace

Drupal\lagoon_logs\Logger

Code

public static function create(ConfigFactoryInterface $config, LogMessageParserInterface $parser) {
  $host = $config
    ->get('lagoon_logs.settings')
    ->get('host');
  $port = $config
    ->get('lagoon_logs.settings')
    ->get('port');
  return new LagoonLogsLogger($host, $port, self::getHostProcessIndex($config), $parser);
}