You are here

public function SyslogToFileLogger::__construct in Apigee Edge 8

SyslogToFileLogger constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A configuration factory instance.

\Drupal\Core\Logger\LogMessageParserInterface $parser: The parser to use when extracting message variables.

\Drupal\Core\Database\Connection $database: The database service.

Overrides SysLog::__construct

File

tests/modules/apigee_edge_test/src/Logger/SyslogToFileLogger.php, line 50

Class

SyslogToFileLogger
Redirects Drupal logs to a file.

Namespace

Drupal\apigee_edge_test\Logger

Code

public function __construct(ConfigFactoryInterface $config_factory, LogMessageParserInterface $parser, Connection $database) {
  parent::__construct($config_factory, $parser);
  $this->database = $database;
}