diff --git a/modules/syslog/syslog.module b/modules/syslog/syslog.module index af3eb0a0..b04d7416 100644 --- a/modules/syslog/syslog.module +++ b/modules/syslog/syslog.module @@ -65,7 +65,7 @@ function syslog_form_system_logging_settings_alter(&$form, &$form_state) { '#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
Base URL of the site.
!timestamp
Unix timestamp of the log entry.
!type
The category to which this message belongs.
!ip
IP address of the user triggering the message.
!request_uri
The requested URI.
!referer
HTTP Referer if available.
!uid
User ID.
!link
A link to associate with the message.
!message
The message to store in the log.
'), + '#description' => t('Specify the format of the syslog entry. Available variables are:
!base_url
Base URL of the site.
!timestamp
Unix timestamp of the log entry.
!type
The category to which this message belongs.
!ip
IP address of the user triggering the message.
!request_uri
The requested URI.
!referer
HTTP Referer if available.
!severity
The severity level of the event; ranges from 0 (Emergency) to 7 (Debug).
!uid
User ID.
!link
A link to associate with the message.
!message
The message to store in the log.
'), ); $form['actions']['#weight'] = 1; } @@ -110,6 +110,7 @@ function syslog_watchdog(array $log_entry) { '!ip' => $log_entry['ip'], '!request_uri' => $log_entry['request_uri'], '!referer' => $log_entry['referer'], + '!severity' => $log_entry['severity'], '!uid' => $log_entry['uid'], '!link' => strip_tags($log_entry['link']), '!message' => strip_tags(!isset($log_entry['variables']) ? $log_entry['message'] : strtr($log_entry['message'], $log_entry['variables'])),