Mercurial > defr > drupal > core
comparison modules/syslog/syslog.module @ 9:acef7ccb09b5 6.4
Drupal 6.4
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:08 +0100 |
parents | 2427550111ae |
children |
comparison
equal
deleted
inserted
replaced
8:85cbd6048071 | 9:acef7ccb09b5 |
---|---|
1 <?php | 1 <?php |
2 // $Id: syslog.module,v 1.14.2.1 2008/04/09 21:11:49 goba Exp $ | 2 // $Id: syslog.module,v 1.14.2.2 2008/07/24 06:52:43 dries Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Redirects logging messages to syslog. | 6 * Redirects logging messages to syslog. |
7 */ | 7 */ |
42 '#type' => 'select', | 42 '#type' => 'select', |
43 '#title' => t('Send events to this syslog facility'), | 43 '#title' => t('Send events to this syslog facility'), |
44 '#default_value' => variable_get('syslog_facility', DEFAULT_SYSLOG_FACILITY), | 44 '#default_value' => variable_get('syslog_facility', DEFAULT_SYSLOG_FACILITY), |
45 '#options' => syslog_facility_list(), | 45 '#options' => syslog_facility_list(), |
46 '#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( | 46 '#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( |
47 '@syslog_help' => url('admin/help/syslog'), | 47 '@syslog_help' => url('admin/help/syslog'))), |
48 '!php' => l("PHP's syslog", 'http://www.php.net/manual/en/function.openlog.php', array('external' => TRUE)), | |
49 '!syslog_conf' => l('UNIX/Linux syslog.conf', 'http://www.rt.com/man/syslog.5.html', array('external' => TRUE)))), | |
50 ); | 48 ); |
51 return system_settings_form($form); | 49 return system_settings_form($form); |
52 } | 50 } |
53 | 51 |
54 function syslog_facility_list() { | 52 function syslog_facility_list() { |