# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpcenter.gitprotect.io/management/log-files/worker-logs-location.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
