# Lokalizacja logów Xopero ONE Management Service

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

***

## Logi Xopero ONE Management Service

{% 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 **Xopero ONE** **Management Service**, niezależnie od systemu operacyjnego, utrzymuje dedykowany katalog logów:

1. Dla systemu **Windows**:

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

2. Dla systemu **Linux**:

`/opt/XoperoONEManagementService/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: 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.xopero.com/xopero-one-en/pl/zarzadzanie/pliki-logow/lokalizacja-logow-xopero-one-management-service.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.
