Get a site's error log
whm_get_error_logRead recent PHP or Apache error log lines for a domain to diagnose site failures. Choose the log source and line count when PHP errors are logged elsewhere.
Instructions
Get recent error log lines for a domain. php reads the error_log file in the domain's document root. apache_error and apache_suexec read the Apache logs for that domain. If php returns nothing, the site may log PHP errors elsewhere, so try apache_error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>"
},
"name": "whm_get_error_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | How many of the most recent lines to return. | |
| domain | Yes | ||
| source | No | Which log to read. | php |