protected function LogMessage::doExecute in Apigee Edge 8
Executes the action.
Parameters
string $message: The message.
string $level: The log level.
File
- modules/
apigee_edge_actions/ src/ Plugin/ RulesAction/ LogMessage.php, line 95
Class
- LogMessage
- Defines a 'Log a message' action.
Namespace
Drupal\apigee_edge_actions\Plugin\RulesActionCode
protected function doExecute(string $message, string $level = "notice") {
if (method_exists($this->logger, $level)) {
$this->logger
->{$level}($message);
}
}