---
title: "Mobile farm device logs"
sidebar_label: "Device logs"
description: "How to record logs and what filters can be used"
sidebar_position: 8
toc_max_heading_level: 2
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import {CustomTable} from '@selectel/docux/components'
import PlayCircleIcon from '@selectel/docux/icons/play-circle'
import PauseCircleIcon from '@selectel/docux/icons/pause-circle'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'

# Mobile farm device logs

You can [capture logs](#get-logs) at any time. To configure logs, use [filters](#filters-for-logs).

## Capture logs \{#get-logs}

1. In the [Control panel](https://my.selectel.ru/mobile-farm/), on the top menu, click **Products** and select **Mobile Farm**.
2. Go to the **Devices** section.
3. In the device row, click the device manufacturer and model.
4. Open the **Logs** tab.
5. Configure [filters](#filters-for-logs).
6. Click <PlayCircleIcon />.
7. To stop logging, click <PauseCircleIcon />.

## Log filters \{#filters-for-logs}

<Tabs queryString="os">
  <TabItem value="android" default>
    <TabItemLabel>
      Android
    </TabItemLabel>

    <CustomTable>
      <table>
        <tbody>
          <tr>
            <th>Level</th>

            <td>
              <p>Filtering by priority — logs display messages with a priority equal to the selected one and higher:</p>

              <ul>
                <li>Verbose (lowest priority) — messages detailing process actions;</li><li>Debug — debugging messages;</li><li>Info — informational messages;</li><li>Warn — warnings;</li><li>Error — error messages;</li><li>Fatal (highest priority) — critical error messages</li>
              </ul>
            </td>
          </tr>

          <tr>
            <th>Message</th><td>Filtering by text — logs display messages containing the entered text</td>
          </tr>

          <tr>
            <th>Time</th><td>Filtering by time — logs display messages that appear within the specified time range. The format is `HH:MM:SS.sss`. For example, if you enter `11:56` in the **Time** field, logs will include messages for one minute. To receive messages for 10 minutes, enter `11:5`</td>
          </tr>

          <tr>
            <th>PID</th><td>Filtering by process identifier — logs display messages triggered by the specified process</td>
          </tr>

          <tr>
            <th>TID</th><td>Filtering by thread identifier — logs display messages triggered by the specified thread. This value may match the PID but can be different because one PID can have multiple TIDs</td>
          </tr>

          <tr>
            <th>Tag</th><td>Filtering by tag — logs display messages from the specified system component</td>
          </tr>
        </tbody>
      </table>
    </CustomTable>
  </TabItem>

  <TabItem value="ios">
    <TabItemLabel>
      iOS
    </TabItemLabel>

    <CustomTable>
      <table>
        <tbody>
          <tr>
            <th>Level</th>

            <td>
              <p>Filtering by priority — logs display messages with a priority equal to the selected one and higher:</p>

              <ul>
                <li>Notice (lowest priority) — warnings;</li><li>Error — error messages;</li><li>Fault (highest priority) — critical error messages</li>
              </ul>
            </td>
          </tr>

          <tr>
            <th>Message</th><td>Filtering by text — logs display messages containing the entered text</td>
          </tr>

          <tr>
            <th>Time</th><td>Filtering by time — logs display messages that appear within the specified time range. The format is `HH:MM:SS.sss`. For example, if you enter `11:56` in the **Time** field, logs will include messages for one minute. To receive messages for 10 minutes, enter `11:5`</td>
          </tr>

          <tr>
            <th>PID</th><td>Filtering by process identifier — logs display messages triggered by the specified process</td>
          </tr>

          <tr>
            <th>Process</th><td>Filtering by process name — logs display messages triggered by the specified process</td>
          </tr>

          <tr>
            <th>Library</th><td>Filtering by library or framework name</td>
          </tr>
        </tbody>
      </table>
    </CustomTable>
  </TabItem>
</Tabs>

<Formbricks />
