You are here

public function DbLog::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/dblog/src/Logger/DbLog.php \Drupal\dblog\Logger\DbLog::__construct()

Constructs a DbLog object.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection object.

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

File

core/modules/dblog/src/Logger/DbLog.php, line 53
Contains \Drupal\dblog\Logger\DbLog.

Class

DbLog
Logs events in the watchdog database table.

Namespace

Drupal\dblog\Logger

Code

public function __construct(Connection $connection, LogMessageParserInterface $parser) {
  $this->connection = $connection;
  $this->parser = $parser;
}