You are here

function syslog_admin_settings in Drupal 6

1 string reference to 'syslog_admin_settings'
syslog_menu in modules/syslog/syslog.module

File

modules/syslog/syslog.module, line 39

Code

function syslog_admin_settings() {
  $form['syslog_identity'] = array(
    '#type' => 'textfield',
    '#title' => t('Syslog identity'),
    '#default_value' => variable_get('syslog_identity', 'drupal'),
    '#description' => t('A string that will be prepended to every message logged to Syslog. If you have multiple sites logging to the same Syslog log file, a unique identity per site makes it easy to tell the log entries apart. For more information on syslog, see <a href="@syslog_help">Syslog help</a>.', array(
      '@syslog_help' => url('admin/help/syslog'),
    )),
  );
  $form['syslog_facility'] = array(
    '#type' => 'select',
    '#title' => t('Send events to this syslog facility'),
    '#default_value' => variable_get('syslog_facility', DEFAULT_SYSLOG_FACILITY),
    '#options' => syslog_facility_list(),
    '#description' => t('Select the syslog facility code under which Drupal\'s messages should be sent. On UNIX/Linux systems, Drupal can flag its messages with the code LOG_LOCAL0 through LOG_LOCAL7; for Microsoft Windows, all messages are flagged with the code LOG_USER. Depending on the system configuration, syslog and other logging tools use this code to identify or filter Drupal messages from within the entire system log. For more information on syslog, see <a href="@syslog_help">Syslog help</a>.', array(
      '@syslog_help' => url('admin/help/syslog'),
    )),
  );
  return system_settings_form($form);
}