You are here

public function LogsHttpLogger::__construct in Logs HTTP 8

Constructs a LogsHttpLogger object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory object.

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

File

src/Logger/LogsHttpLogger.php, line 59

Class

LogsHttpLogger
Implements a Logs Http Logger instance.

Namespace

Drupal\logs_http\Logger

Code

public function __construct(ConfigFactoryInterface $config_factory, LogMessageParserInterface $parser) {
  $this->config = $config_factory
    ->get('logs_http.settings');
  $this->logMessageParser = $parser;
  $this->severityLevels = RfcLogLevel::getLevels();
}