Отладочные журналы
Когда что-то работает неправильно, отладочные журналы приложения — это самое полезное, что вы можете приложить к отчёту об ошибке. Meshtastic can capture them for you, from inside the app — you don’t need adb or any desktop tooling to collect them.
Откройте Панель отладки через Настройки → Дополнительно → Панель отладки.
If you’re filing an issue, export your logs (see Exporting) and attach the .txt file to your report on the Meshtastic-Android issue tracker. Захват журнала, охватывающий момент возникновения проблемы, превращает «это не работает» в то, что разработчик действительно может отследить.
Две вкладки
Панель отладки содержит две вкладки:
- Packets — the decoded mesh traffic your node has sent and received (protocol-level messages). Полезно для диагностики поведения mesh-сети и маршрутизации.
- Журналы приложения — собственный диагностический журнал приложения (Android logcat), включая предупреждения, ошибки и трассировки стека самого приложения. Обычно именно это требуется для отчёта об ошибке.
Каждая вкладка имеет собственную кнопку экспорта и создаёт отдельный файл, поэтому вы можете сохранить тот, который нужен — или сразу оба.
Viewing packets
The Packets tab lists each logged packet; tap one to expand it, including its decoded payload where there is one.
- Search — type in Search in logs… to highlight matches, and step between them with the arrows.
- Filters — add your own text filters, or pick from Preset Filters: your own node ID, the broadcast address
!ffffffff,decoded, today’s date, and each port name. The match toggle switches between matching any filter and matching all of them. - Settings — the gear icon shows Store mesh logs, which turns writing packets to the log on or off, and MeshLog retention period, from one hour to a year, or Never delete logs.
- Clear Logs — the delete icon removes every stored packet, after you confirm.
Просмотр журналов приложения
The App logs tab shows the most recent log lines from this app only — never other apps on your phone.
- Поиск — введите текст в поле поиска, чтобы отфильтровать строки по совпадению.
- Фильтр по уровню — кнопки V / D / I / W / E переключают отображение строк с уровнями Verbose (Подробный), Debug (Отладка), Info (Информация), Warn (Предупреждение) и Error (Ошибка). Нажмите на уровень, чтобы скрыть его; нажмите ещё раз, чтобы вернуть обратно. Строки с фатальными ошибками отображаются всегда.
- Обновить — значок обновления заново считывает последние записи журнала.
Строки с ошибками и предупреждениями подсвечиваются цветом, чтобы проблемы выделялись.
Экспорт
Нажмите на значок загрузки, чтобы сохранить текущие журналы в файл. The app first shows a warning about what the file contains — confirm it, then choose where the file goes through the system file picker. The file is named with a timestamp (for example meshtastic_logcat_20260701_143312.txt) so repeated exports never overwrite each other. The same warning guards the Packets tab export.
Прикрепите этот файл к своей задаче на GitHub.
🔒 Privacy: Exports automatically redact private keys, admin keys, session passkeys, and channel PSKs, and suppress raw packet bytes. Everything else stays — the file can contain your message text, precise locations, and node details. Read it before sharing it publicly, and share privately if you have any doubt.
Desktop
У компьютерного приложения нет системного logcat, поэтому вкладка Журналы приложения вместо этого показывает собственный захваченный вывод журнала приложения. Поиск, фильтрация и экспорт работают точно так же. Release builds capture Info, Warn, and Error lines; Verbose and Debug lines appear only in development builds.
Связанные темы
- Справка и встроенная документация — чтение этой документации офлайн внутри приложения
- Connections — if the problem is getting connected to your node in the first place