summaryrefslogtreecommitdiff
path: root/modules/watchdog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-02-25 17:17:26 +0000
committerDries Buytaert <dries@buytaert.net>2001-02-25 17:17:26 +0000
commit57ca3f132f22b977566a45a515978f11bf19550f (patch)
treee9375cd02ba3dcd405fced3d352984c29c0eaf3a /modules/watchdog.module
parent19408c6199a6a9b819355f7b1beeb34a453dbe58 (diff)
downloadbrdo-57ca3f132f22b977566a45a515978f11bf19550f.tar.gz
brdo-57ca3f132f22b977566a45a515978f11bf19550f.tar.bz2
- added some documentation
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r--modules/watchdog.module15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module
index 26714ed20..9980a9c36 100644
--- a/modules/watchdog.module
+++ b/modules/watchdog.module
@@ -1,8 +1,16 @@
<?
-$module = array("cron" => "watchdog_cron",
+$module = array("help" => "watchdog_help",
+ "cron" => "watchdog_cron",
"admin" => "watchdog_admin");
+function watchdog_help() {
+ ?>
+ <P>The watchdog module monitors your website, 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.</P>
+ <P>To ease administration, the watchdog will automatically remove old logs.</P>
+ <?
+}
+
function watchdog_cron() {
watchdog_clean();
}
@@ -63,7 +71,12 @@ function watchdog_view($id) {
function watchdog_admin() {
global $op, $id, $order;
+ print "<SMALL><A HREF=\"admin.php?mod=watchdog\">overview</A> | <A HREF=\"admin.php?mod=watchdog&op=help\">help</A></SMALL><HR>\n";
+
switch ($op) {
+ case "help":
+ watchdog_help();
+ break;
case "view":
watchdog_view($id);
break;