public function ErrorLog::__construct in Error Log 8
Constructs an Error Log object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory object.
\Drupal\Core\Logger\LogMessageParserInterface $parser: The parser to use when extracting message variables.
File
- src/
Logger/ ErrorLog.php, line 67
Class
- ErrorLog
- Logs events to the PHP error log.
Namespace
Drupal\error_log\LoggerCode
public function __construct(ConfigFactoryInterface $config_factory, LogMessageParserInterface $parser) {
$this->configFactory = $config_factory;
$this->config = $this->configFactory
->get('error_log.settings');
$this->parser = $parser;
}