> For the complete documentation index, see [llms.txt](https://helpcenter.xopero.com/xopero-one-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.xopero.com/xopero-one-en/pl/zarzadzanie/pliki-logow/lokalizacja-logow-agenta.md).

# Lokalizacja logów agenta

#### Log aplikacji to plik, który rejestruje zdarzenia i akcje wykonywane w ramach aplikacji. Pliki te są szczególnie przydatne do diagnozowania i rozwiązywania problemów z oprogramowaniem.

***

## Logi agenta Xopero ONE

{% hint style="success" %}
Logi mogą być również pobierane na hosta **Xopero ONE Management Service** za pośrednictwem konsoli internetowej.
{% endhint %}

{% hint style="danger" %}
Pliki logów z usługi **Xopero ONE Management Service** (**XMS**) oraz aplikacji **agenta Xopero ONE** są przechowywane przez **14 dni**.
{% endhint %}

Każda aplikacja **agenta Xopero ONE**, niezależnie od systemu operacyjnego, utrzymuje dedykowany katalog logów:

1. Dla systemu **Windows**:

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

2. Dla systemu **Linux**:

`/opt/XoperoONEBackupAgent/Xopero/Logs`

3. Dla systemu **MacOS**:

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

***

## Nadpisywanie poziomu logowania

**Xopero ONE Management Service** oraz aplikacje **agenta Xopero ONE agent** obsługują zmienną systemową, która pozwala na nadpisanie wybranego poziomu logowania bez konieczności tworzenia niestandardowych obrazów.

Zmienna, którą należy ustawić, to `XOPERO_LOG_LEVEL`.

{% hint style="danger" %}
**Wszystkie zmienne są wrażliwe na wielkość liter (case sensitive).**
{% endhint %}

{% code title="Przykład użycia" overflow="wrap" %}

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

{% endcode %}

Dostępne **poziomy logowania** to:

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://helpcenter.xopero.com/xopero-one-en/pl/zarzadzanie/pliki-logow/lokalizacja-logow-agenta.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
