function syslog_facility_list

Same name and namespace in other branches
  1. 11.x core/modules/syslog/syslog.module \syslog_facility_list()
  2. 10 core/modules/syslog/syslog.module \syslog_facility_list()
  3. 9 core/modules/syslog/syslog.module \syslog_facility_list()
  4. 8.9.x core/modules/syslog/syslog.module \syslog_facility_list()
  5. 7.x modules/syslog/syslog.module \syslog_facility_list()

Lists all possible syslog facilities for UNIX/Linux.

Return value

array An array of syslog facilities for UNIX/Linux.

Deprecated

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

See also

https://www.drupal.org/node/3566774

File

core/modules/syslog/syslog.module, line 37

Code

function syslog_facility_list() {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  return [
    LOG_LOCAL0 => 'LOG_LOCAL0',
    LOG_LOCAL1 => 'LOG_LOCAL1',
    LOG_LOCAL2 => 'LOG_LOCAL2',
    LOG_LOCAL3 => 'LOG_LOCAL3',
    LOG_LOCAL4 => 'LOG_LOCAL4',
    LOG_LOCAL5 => 'LOG_LOCAL5',
    LOG_LOCAL6 => 'LOG_LOCAL6',
    LOG_LOCAL7 => 'LOG_LOCAL7',
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.