"watchdog_help", "cron" => "watchdog_cron", "admin" => "watchdog_admin"); function watchdog_help() { ?>
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.
To ease administration, the watchdog will automatically remove old logs.
". variable_get(watchdog_clear, "302400")); } function watchdog_overview() { $colors = array(message => "#FFFFFF", special => "#836FFF", warning => "#FFAA22", error => "#EE2C2C"); $result = db_query("SELECT w.*, u.userid FROM watchdog w LEFT JOIN users u ON w.user = u.id ORDER BY timestamp DESC LIMIT 1000"); $output .= "date | type | message | user | operations |
---|---|---|---|---|
". format_date($watchdog->timestamp) ." | $watchdog->link | ". substr(check_output($watchdog->message), 0, 50) ." | ". format_username($watchdog->userid) ." | id\">details |
Type: | ". check_output($watchdog->type) ." |
---|---|
Date: | ". format_date($watchdog->timestamp, "large") ." |
User: | ". format_username($watchdog->userid) ." |
Location: | ". check_output($watchdog->location). " |
Message: | ". check_output($watchdog->message) ." |
Hostname: | ". check_output($watchdog->hostname) ." |