- added some documentation

3-00
Dries Buytaert 2001-02-25 17:17:26 +00:00
parent 19408c6199
commit 57ca3f132f
2 changed files with 28 additions and 2 deletions

View File

@ -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;

View File

@ -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;