function syslog_facility_list

Same name in other branches
  1. 7.x modules/syslog/syslog.module \syslog_facility_list()
  2. 9 core/modules/syslog/syslog.module \syslog_facility_list()
  3. 8.9.x core/modules/syslog/syslog.module \syslog_facility_list()
  4. 11.x core/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.

1 call to syslog_facility_list()
syslog_form_system_logging_settings_alter in core/modules/syslog/syslog.module
Implements hook_form_FORM_ID_alter().

File

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

Code

function syslog_facility_list() {
    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.