# 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](https://helpcenter.gitprotect.io/troubleshooting/fetching-device-logs).
{% 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="../../deployment-and-configuration/gitprotect-worker/local-worker/worker-configuration" %}
[worker-configuration](https://helpcenter.gitprotect.io/deployment-and-configuration/gitprotect-worker/local-worker/worker-configuration)
{% endcontent-ref %}
