public static function LagoonLogsLoggerFactory::create in Lagoon Logs 8
1 string reference to 'LagoonLogsLoggerFactory::create'
File
- src/
Logger/ LagoonLogsLoggerFactory.php, line 15
Class
Namespace
Drupal\lagoon_logs\LoggerCode
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);
}