public function Base::watchdog in DRD Agent 8.3
Same name and namespace in other branches
- 4.0.x src/Agent/Action/Base.php \Drupal\drd_agent\Agent\Action\Base::watchdog()
Logging if in debug mode.
Overrides BaseInterface::watchdog
6 calls to Base::watchdog()
- Base::authorizeBySecret in src/
Agent/ Action/ Base.php - Callback to authorize a DRD instance with a given secret.
- Base::ott in src/
Agent/ Action/ Base.php - Validate a one-time-token.
- Base::readInput in src/
Agent/ Action/ Base.php - Read and decode the input from the POST request.
- Base::run in src/
Agent/ Action/ Base.php - Main callback to execute an action.
- DomainsReceive::readSettings in src/
Agent/ Action/ DomainsReceive.php - Safely read the settings.php file and return the relevant variables.
File
- src/
Agent/ Action/ Base.php, line 452
Class
- Base
- Base class for Remote DRD Action Code.
Namespace
Drupal\drd_agent\Agent\ActionCode
public function watchdog($message, array $variables = [], $severity = 5, $link = NULL) : BaseInterface {
if ($this
->getDebugMode()) {
if ($link) {
$variables['link'] = $link;
}
$this->logger
->log($severity, $message, $variables);
}
return $this;
}