Android Studio Logcat 读取/打开保存的日志

问题描述 投票:0回答:3

我保存了一些日志,想用 Android Studio - Logcat 界面打开它们,并且能够看到颜色并应用一些过滤器,就像手机已连接一样。

这可能吗?

android android-studio kotlin logging logcat
3个回答
1
投票

当我需要可视化不同的 logcat 时,我通常会在 Visual Studio Code 中打开它们并应用 “Log” 语言模式。 使用“日志”语言模式,您可以看到所有日志颜色。


0
投票

您可以将保存的日志粘贴到代码 -> 分析堆栈跟踪或线程转储中


0
投票

您可以通过“从文件导入日志”按钮在 Android Studio 的 logcat 工具窗口中查看 .logcat 文件:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.