function configuration_log in Configuration Management 7
Log a message, environment agnostic.
Parameters
$message: The message to log.
$severity: The severity of the message: status, warning or error.
File
- ./
configuration.module, line 1060 - Module file for the configuration module, which enables the capture and management of configuration in Drupal.
Code
function configuration_log($message, $severity = 'status') {
if (function_exists('drush_verify_cli')) {
$message = strip_tags($message);
if ($severity == 'status') {
$severity = 'ok';
}
elseif ($severity == 'error') {
drush_set_error($message);
return;
}
drush_log($message, $severity);
return;
}
drupal_set_message($message, $severity, FALSE);
}