You are here

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

MongoDbLog

Namespace

Drupal\mongodb_dblog

Code

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