[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_log() Method

The `get_debug_log()` method retrieves the debug log file's absolute path and filename.

* By default, LiveAPI environments log debugging data to the `/home/user/.cpanel/LiveAPI.log.rand` file, where `user` is the cPanel account's username, and `rand` is a random string that cPanel & WHM generates.


This method does **not** return the debug log's contents.

## Example

### LiveAPI PHP Class


```php
// Get the debug log's location.
$cpanel->get_debug_log();
```

### LiveAPI Perl Module


```perl
# Get the debug log's location.
$cpliveapi->get_debug_log();
```

## Parameters

This method does not accept parameters.

## Returns

This method returns the absolute path and filename for the LiveAPI system's debug log file.