Function __global->cms_error_log

Definitions

sources/failure.php

  • Log an error message and send a notification about it (to site staff but not to the core developers).Generally used when a web API fails.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$errormsg string No No required parameter N/A N/A A error message
$notification_category ID_TEXT No No error_occurred N/A N/A The error_occurred notification category

Preview

Code (PHP)

/**
 * Log an error message and send a notification about it (to site staff but not to the core developers).Generally used when a web API fails.
 *
 * @param  string $errormsg A error message
 * @param  ID_TEXT $notification_category The error_occurred notification category
 */

function cms_error_log(string $errormsg, string $notification_category = 'error_occurred')