You are here

public function LogsHttpLogger::isEnabled in Logs HTTP 8

Check weather we should use Logs http module or not.

Determine by checking the 'enabled' configuration, plus the 'url' must not be empty.

Return value

bool Returns TRUE if currently we should POST the data, otherwise returns FALSE.

Overrides LogsHttpLoggerInterface::isEnabled

1 call to LogsHttpLogger::isEnabled()
LogsHttpLogger::log in src/Logger/LogsHttpLogger.php

File

src/Logger/LogsHttpLogger.php, line 194

Class

LogsHttpLogger
Implements a Logs Http Logger instance.

Namespace

Drupal\logs_http\Logger

Code

public function isEnabled() {
  return $this->config
    ->get('enabled') && !empty($this
    ->getUrl());
}