diff --git modules/syslog/syslog.install modules/syslog/syslog.install new file mode 100644 index 0000000..feebb63 --- /dev/null +++ modules/syslog/syslog.install @@ -0,0 +1,16 @@ + '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.') . $help, + ); if (defined('LOG_LOCAL0')) { - $help = module_exists('help') ? ' ' . l(t('More information'), 'admin/help/syslog') . '.' : NULL; - $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.') . $help, - ); $form['syslog_facility'] = array( '#type' => 'select', '#title' => t('Syslog facility'), @@ -52,14 +52,14 @@ function syslog_form_system_logging_settings_alter(&$form, &$form_state) { '#options' => syslog_facility_list(), '#description' => t('Depending on the system configuration, Syslog and other logging tools use this code to identify or filter messages from within the entire system log.') . $help, ); - $form['syslog_format'] = array( - '#type' => 'textarea', - '#title' => t('Syslog format'), - '#default_value' => variable_get('syslog_format', '!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message'), - '#description' => t('Specify the format of the syslog entry. Available variables are:
!base_url
!timestamp
!type
!ip
!request_uri
!referer
!uid
!link
!message
!base_url
!timestamp
!type
!ip
!request_uri
!referer
!uid
!link
!message