function DbLog::__construct
Same name and namespace in other branches
- 10 core/modules/dblog/src/Logger/DbLog.php \Drupal\dblog\Logger\DbLog::__construct()
- 11.x core/modules/dblog/src/Logger/DbLog.php \Drupal\dblog\Logger\DbLog::__construct()
- 9 core/modules/dblog/src/Logger/DbLog.php \Drupal\dblog\Logger\DbLog::__construct()
- 8.9.x 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 33
Class
- DbLog
- Logs events in the watchdog database table.
Namespace
Drupal\dblog\LoggerCode
public function __construct(protected Connection $connection, protected LogMessageParserInterface $parser) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.