# Logs

Website Configuration / Logs

## Delete a log archive file

 - [GET /LogManager/delete_archive](https://api.docs.cpanel.net/specifications/cpanel.openapi/logs/logmanager-delete_archive.md): Delete a specific log archive file from the authenticated user's ~/logs directory.

## Retrieve cPanel account's log archival settings

 - [GET /LogManager/get_settings](https://api.docs.cpanel.net/specifications/cpanel.openapi/logs/logmanager-get_settings.md): This function retrieves the account's log archival settings.

## Return cPanel account's archive files list

 - [GET /LogManager/list_archives](https://api.docs.cpanel.net/specifications/cpanel.openapi/logs/logmanager-list_archives.md): This function returns a list of the user's archive files.

## Return domain's PHP error logs

 - [GET /LogManager/list_error_logs](https://api.docs.cpanel.net/specifications/cpanel.openapi/logs/logmanager-list_error_logs.md): This function lists the website's PHP error log files with size
and last-modified metadata. It does not return file contents.

## Save cPanel account's log archive settings

 - [GET /LogManager/set_settings](https://api.docs.cpanel.net/specifications/cpanel.openapi/logs/logmanager-set_settings.md): This function saves the account's log archive settings.

Note:

You must pass at least one of the archive_logs, prune_archive, or retention_days parameters.

## Return PHP error log for a domain

 - [GET /LogManager/view_error_log](https://api.docs.cpanel.net/specifications/cpanel.openapi/logs/logmanager-view_error_log.md): This function reads the trailing lines of a single PHP error log
file for a domain owned by the current cPanel user and returns
them in chronological order (oldest first).

