# How to save Orbbec SDK v2 log
This guide explains how to save logs from OrbbecViewer and Orbbec SDK v2 applications on both Windows and Linux.
## How to save logs using OrbbecViewer
First, set the log level to Debug. To enable device firmware logs,check the Heartbeat option.

Logs are saved in the Log folder located in the same directory as OrbbecViewer.
- Note: If the SDK is installed via the installer, the logs are saved in the Log directory alongside OrbbecViewer in the installation path.
### windows
On Windows, the log path is as follows:

### Linux (x64/ARM64)
On Linux (x64/ARM64), the log path is as follows:

## How to save logs in an Orbbec SDK v2 application
### windows
- Copy OrbbecSDKConfig.xml to the same directory as OrbbecSDK.dll.
- Set File Log level to 0 (Debug).

- To enable firmware logging, set DefaultHeartBeat to 1 in the corresponding device section. Example for Gemini 335Le:
```
1
```
- Logs are stored in the Log folder alongside the application. For example:

### Linux (x64/ARM64)
- Copy OrbbecSDKConfig.xml to the same directory as libOrbbecSDK.so.
- Set File Log level to 0 (Debug).

- Enable firmware logging by setting DefaultHeartBeat to 1 in the device section. Example for Gemini 335Le:
```
1
```
- Logs are stored in the Log folder alongside the application. For example:
