- added some documentation
parent
19408c6199
commit
57ca3f132f
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue