public function MongoDbLog::__construct in MongoDB 8
Constructs a DbLog object.
Parameters
\Drupal\mongodb\MongoCollectionFactory $mongo: The mongo collection factory.
\Drupal\Core\Logger\LogMessageParserInterface $parser: The parser to use when extracting message variables.
File
- mongodb_dblog/
src/ MongoDbLog.php, line 41 - Contains \Drupal\mongodb\MongoDbLog.
Class
Namespace
Drupal\mongodb_dblogCode
public function __construct(MongoCollectionFactory $mongo, LogMessageParserInterface $parser) {
$this->mongo = $mongo;
$this->parser = $parser;
}