Development Guides Home >> Guide to the LiveAPI System >> LiveAPI Methods
The get_debug_level() method retrieves the current debug level.
To set the LiveAPI debug level, use the set_debug() method.
// Get the current debug level.
$cpliveapi->get_debug_level();# Get the current debug level.
$cpliveapi->get_debug_level();This method does not accept parameters.
This method returns the an integer that represents the current debug level:
0— LiveAPI currently does not log data.- Any other integer value — The LiveAPI system logs any messages with a
levelvalue that is greater than or equal to this value.