# Agent 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.

***

## Xopero ONE agent logs

{% hint style="success" %}
Logs can also be retrieved to the **Xopero ONE Management Service** host through the web console.
{% endhint %}

{% hint style="danger" %}
Log files from **Xopero ONE Management Service** (**XMS**) and **Xopero ONE agent** application are stored for **14 days**.
{% endhint %}

Each **Xopero ONE** **agent** 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

**Xopero ONE Management Service** and **Xopero ONE agent** 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`
