Android Studio Logcat upgrade and restore old version

After upgrading AS to 2021.3.1, I found that Logcat can also be upgraded. After clicking it, I found that the interface is completely different.

new logcat

There is no way to filter the content directly. Of course, the new one has new advantages. You can create multiple Logcat windows. Of course, you can also filter and filter in different ways:

  1. package: Filter logs by package name, and the default  package:mine means to filter by the currently running application package name.
package:com.uso6
  1. level: filter logs by priority.
level:VERBOSE	// 显示所有信息
level:DEBUG	// 显示调试信息
level:INFO	// 显示一般信息
level:WARN	// 显示警告信息
level:ERROR	// 显示错误信息
level:ASSERT	// 显示抛出的断言
  1. tag: Filter logs by tags.
tag:nukix	// 过滤 nukix 的标签
tag:nukix tag:blog	// 同时过滤 nukix 和 blog 的标签
-tag:nukix	// nukix 的标签除外
tag~:[\w]+ // 以正则表达式过滤标签
-tag~:[\w]+	// 除外和正则表达式组合
  1. message: Filter logs with output logs.
  2. age: Keep logs for the specified age.
age:10s	// 从 10 秒以前的日志开始输出
age:1m // 从 1 分钟以前的日志开始输出
age:1h // 从 1 小时以前的日志开始输出
  1. line: Filter logs with line information (including tag and message).

 

Of course, I’m not used to it anymore, and I still want to restore the old version. It said on the Internet that I can uninstall and reinstall, but I found it didn’t work.

Later, I found that removing the check box here can restore it.

 

 

Guess you like

Origin blog.csdn.net/zengkai19900512/article/details/127239737