We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.

We will continue to maintain our API documentation on this server.

Child pages
  • Guide to the LiveAPI System - The get_debug_level() Method
Skip to end of metadata
Go to start of metadata



The get_debug_level() method retrieves the current debug level.


To set the LiveAPI debug level, use the set_debug() method.


LiveAPI PHP Class

// Get the current debug level.

LiveAPI Perl Module

# Get the current 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 level value that is greater than or equal to this value.