> For the complete documentation index, see [llms.txt](https://helpcenter.gitprotect.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.gitprotect.io/management/log-files/worker-logs-location.md).

# Worker logs location

#### The application log is a file that records events and actions performed within the application. These files are particularly useful for diagnosing and troubleshooting software issues.

***

## GitProtect worker logs

{% hint style="success" %}
Logs can also be retrieved to the **Management Service** host [through the web console](/troubleshooting/fetching-device-logs.md).
{% endhint %}

{% hint style="danger" %}
Log files from **GitProtect Management Service** and **GitProtect worker** application are stored for **14 days**.
{% endhint %}

Each **GitProtect worker** application, regardless of the operating system, maintains a dedicated log directory:

1. For **Windows**:

`%ProgramData%\Xopero ONE\Xopero ONE Backup&Recovery Agent\Logs`

2. For **Linux**:

`/opt/XoperoONEBackupAgent/Xopero/Logs`

3. For **MacOS**:

`/Applications/XoperoONE/XoperoONEBackup&RecoveryAgent/device-app/Xopero/Logs`

***

## Log level override

**GitProtect Management Service** and **GitProtect worker** applications support a system variable that allows overriding the selected log level without the need to create custom images.

The variable that you need to set is called `XOPERO_LOG_LEVEL`.

{% hint style="danger" %}
**All variables are case sensitive.**
{% endhint %}

{% code title="Usage example" overflow="wrap" %}

```bash
XOPERO_LOG_LEVEL=Debug ./Xopero.Device.App
```

{% endcode %}

The available **log levels** are:

* [x] `Trace`
* [x] `Debug`
* [x] `Information`
* [x] `Warning`
* [x] `Error`
* [x] `Critical`
* [x] `None`

***

## Useful links and items

{% content-ref url="/pages/WAdiso4rCm6r9L36NL0S" %}
[Worker configuration](/deployment-and-configuration/gitprotect-worker/local-worker/worker-configuration.md)
{% endcontent-ref %}
