Development Guides Home >> Guide to the LiveAPI System >> LiveAPI Methods
Guide to the LiveAPI System - The set_debug() Method
The set_debug() method sets the amount of debug information to store in LiveAPI's debug log file.
-
By default, LiveAPI environments log debugging data to the
/home/user/.cpanel/LiveAPI.log.randfile, whereuseris the cPanel account's username, andrandis a random string that cPanel & WHM generates.
Example
LiveAPI PHP Class
// Turn off logging to the debug error log.
$cpliveapi->set_debug('0');LiveAPI Perl Module
# Turn off logging to the debug error log.
$cpliveapi->set_debug('0');Parameters
| Parameter | Type | Description | Possible values | Example |
|---|---|---|---|---|
debug_level |
integer | The debug log's setting. |
|
1 |
Returns
This method returns a Boolean value that indicates success or failure:
-
1— Success. -
0— Failure.