diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-01 13:43:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-01 13:43:11 +0000 |
commit | 5bdef156a8c86929cc98887cb7e84371d622c2fc (patch) | |
tree | 7a597e37b395479c42f9c731064cb03d44de5b17 /modules/syslog/syslog.module | |
parent | b8eb08d51437c4f3480e88d7886f3b7cda1550fe (diff) | |
download | brdo-5bdef156a8c86929cc98887cb7e84371d622c2fc.tar.gz brdo-5bdef156a8c86929cc98887cb7e84371d622c2fc.tar.bz2 |
- Patch #634234 by jhodgdon, arianek, lisarex: better help for system module, syslog module, and simpletest module.
Diffstat (limited to 'modules/syslog/syslog.module')
-rw-r--r-- | modules/syslog/syslog.module | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/modules/syslog/syslog.module b/modules/syslog/syslog.module index df4914b28..4705614f1 100644 --- a/modules/syslog/syslog.module +++ b/modules/syslog/syslog.module @@ -19,13 +19,16 @@ else { function syslog_help($path, $arg) { switch ($path) { case 'admin/help#syslog': - $output = '<p>' . t("Syslog logs events by sending messages to the logging facility of your web server's operating system. Syslog is an operating system administrative logging tool, and provides valuable information for use in system management and security auditing. Most suited to medium and large sites, syslog provides filtering tools that allow messages to be routed by type and severity.") . '</p>'; - $output .= '<h2>' . t('UNIX, Linux & Mac OS X') . '</h2>'; - $output .= '<p>' . t('On UNIX, Linux and Mac OS X, the file /etc/syslog.conf defines this routing configuration. Messages can be flagged with the codes <code>LOG_LOCAL0</code> through <code>LOG_LOCAL7</code>. For information on syslog facilities, severity levels, and how to set up <code>syslog.conf</code>, see the <code>syslog.conf</code> manual page</a>.') . '</p>'; - $output .= '<h2>' . t('Microsoft Windows') . '</h2>'; - $output .= '<p>' . t('On Microsoft Windows messages are always sent to the Event Log using the code <code>LOG_USER</code>.') . '</p>'; - $output .= '<p>' . t('For more information, see the <a href="@syslog">online handbook</a> and and PHP\'s <a href="@php_openlog">openlog</a> and <a href="@php_syslog">syslog</a> functions.', array('@syslog' => 'http://drupal.org/handbook/modules/syslog', '@php_openlog' => url('http://www.php.net/manual/function.openlog.php'), '@php_syslog' => url('http://www.php.net/manual/function.syslog.php'))) . '</p>'; - + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t("The Syslog module logs events by sending messages to the logging facility of your web server's operating system. Syslog is an operating system administrative logging tool that provides valuable information for use in system management and security auditing. Most suited to medium and large sites, Syslog provides filtering tools that allow messages to be routed by type and severity. For more information, see the online handbook entry for <a href='@syslog'>Syslog module</a> and PHP's <a href='@php_openlog'>openlog</a> and <a href='@php_syslog'>syslog</a> functions.", array('@syslog' => 'http://drupal.org/handbook/modules/syslog', '@php_openlog' => 'http://www.php.net/manual/function.openlog.php', '@php_syslog' => 'http://www.php.net/manual/function.syslog.php')) . '</p>'; + $output .= '<h3>' . t('Uses') . '</h3>'; + $output .= '<dl>'; + $output .= '<dt>' . t('Logging for UNIX, Linux, and Mac OS X') . '</dt>'; + $output .= '<dd>' . t('On UNIX, Linux, and Mac OS X, the file <em>/etc/syslog.conf</em> defines the routing configuration. Messages can be flagged with the codes <code>LOG_LOCAL0</code> through <code>LOG_LOCAL7</code>. For information on Syslog facilities, severity levels, and how to set up <em>syslog.conf</em>, see the <em>syslog.conf</em> manual page on your command line.') . '</dd>'; + $output .= '<dt>' . t('Logging for Windows') . '</dt>'; + $output .= '<dd>' . t('On Windows, messages are always sent to the Event Log using the code <code>LOG_USER</code>.') . '</dd>'; + $output .= '</dl>'; return $output; } } |