[Development Guides Home](/guides) >> [Guide to the LiveAPI System](/guides/guide-to-the-liveapi-system) >> [LiveAPI Methods](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods) # Guide to the LiveAPI System - The get_debug_level() Method The `get_debug_level()` method retrieves the current debug level. To set the LiveAPI debug level, use the [`set_debug()`](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods/guide-to-the-liveapi-system-the-set-debug-method/) method. ## Example ### LiveAPI PHP Class ```php // Get the current debug level. $cpliveapi->get_debug_level(); ``` ### LiveAPI Perl Module ```perl # Get the current debug level. $cpliveapi->get_debug_level(); ``` ## Parameters This method does not accept parameters. ## Returns 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.