From 22c889e7c05b1c2dd98ad5e6b3547234a3f6596f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Oct 2003 18:16:41 +0000 Subject: - Help system improvements: eliminated the _system hook. Patch by Michael. - Bloggerapi module fixes. Patch by Kjartan. - Coding style fixes. Patch by Michael. --- modules/watchdog.module | 51 +++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'modules/watchdog.module') diff --git a/modules/watchdog.module b/modules/watchdog.module index 38608c659..0d96ef51c 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -5,41 +5,42 @@ function watchdog_help($section = "admin/help") { $output = ""; switch ($section) { - case "admin/help": - case "admin/watchdog/help": - $output .= "

Watchdog module monitors your web site, capturing system events in a log to be reviewed by an authorized individual at a later time. The Watchdog log is simply a list of recorded events containing usage data, performance data, errors, warnings and operational information. It is vital to ". l("check the Watchdog report", "admin/watchdog") ." on a regular basis as it is often the only way to tell what is going on.

"; - $output .= "

To ease administration, the watchdog will automatically discard old log entries, ". l("as configured", "admin/system/modules/watchdog") .". Needs \"cron.php\" to discard the entries.

"; + case 'admin/help': + case 'admin/watchdog/help': + $output .= "

Watchdog module monitors your web site, capturing system events in a log to be reviewed by an authorized individual at a later time. The Watchdog log is simply a list of recorded events containing usage data, performance data, errors, warnings and operational information. It is vital to %watchdog on a regular basis as it is often the only way to tell what is going on.

"; + $output .= "

To ease administration, the watchdog will automatically discard old log entries, %log-entry. Needs \"cron.php\" to discard the entries.

"; + $output = t($output, array("%watchdog" => l(t("check the Watchdog report"), "admin/watchdog"), "%log-entry" => l(t("as configured"), "admin/system/modules/watchdog"))); break; - case "admin/watchdog": - $output = "The watchdog module monitors your web site, captures system events in a log and records them to be reviewed by an authorized individual at a later time. The watchdog log is simply a list of events recorded during operation and contains usage data, performance data, errors, warnings and operational information. It is vital to check the watchdog report on a regular basis as it is often the only way to tell what is going on."; + case 'admin/watchdog': + $output = t("The watchdog module monitors your web site, captures system events in a log and records them to be reviewed by an authorized individual at a later time. The watchdog log is simply a list of events recorded during operation and contains usage data, performance data, errors, warnings and operational information. It is vital to check the watchdog report on a regular basis as it is often the only way to tell what is going on."); break; - case "admin/watchdog/user": - $output = "Watchdog events that have to do with users."; + case 'admin/watchdog/user': + $output = t("Watchdog events that have to do with users."); break; - case "admin/watchdog/regular": - $output = "Watchdog events that are \"normal\" and have no other classification."; + case 'admin/watchdog/regular': + $output = t("Watchdog events that are \"normal\" and have no other classification."); break; - case "admin/watchdog/httpd": - $output = "Watchdog events that are from the web server."; + case 'admin/watchdog/httpd': + $output = t("Watchdog events that are from the web server."); break; - case "admin/watchdog/special": - $output = "Watchdog events about adding, changing, and moderating nodes and comments."; + case 'admin/watchdog/special': + $output = t("Watchdog events about adding, changing, and moderating nodes and comments."); break; - case "admin/watchdog/error": - $output = "Watchdog general error events, such as invalid login, permission denied, and database errors."; + case 'admin/watchdog/error': + $output = t("Watchdog general error events, such as invalid login, permission denied, and database errors."); break; - case "admin/watchdog/warning": - $output = "Watchdog warning events. These events don't stop Drupal from running, but are things you should no to correct."; + case 'admin/watchdog/warning': + $output = t("Watchdog warning events. These events don't stop Drupal from running, but are things you should no to correct."); + break; + case 'admin/system/modules#description': + $output = t("Logs and records system events."); + break; + case 'admin/system/modules/watchdog': + $output = t("Watchdog logs your system events. To see these logs go to %watchdog. Since these logs can grow out of control if kept around forever, below set how long an item should be kept in the log.
Note:", array("%watchdog" => l(t("Site monitoring"), "admin/watchdog"))); break; } - return t($output); -} - -function watchdog_system($field){ - $system["description"] = t("Logs and records system events."); - $system["admin_help"] = t("Watchdog logs your system events. To see these logs go to Site monitoring. Since these logs can grow out of control if kept around forever, below set how long an item should be kept in the log.
Note:", array("%watchdog" => url("admin/watchdog"))); - return $system[$field]; + return $output; } function watchdog_perm() { -- cgit v1.2.3