New version of Logcat experience and sharing—NEW Logcat in Android Studio Dolphin

overall feeling

1. The interface is better-looking - rich in color and regular display
2. More convenient to use - the filtering operation is very in line with the usage habits of programmers
3. The details are very thoughtful - the prompts are very user-friendly and in place

nice interface

Different log levels use different text colors. The content of each line is aligned in the column unit. If the column unit item is too long, the characters at the beginning and the end will be displayed, and the ellipsis in the middle indicates that the log line from left to right is time and thread respectively
insert image description here
. number, label, package name, log level, package name, and log content. They are all units of log filtering!

Prompt function

1. Enter any character in the filter condition input box, and the key of the supported filter unit will be prompted for fuzzy matching. Click Next TIP to learn about various TIPS. 2. Press control +
insert image description here
space in the filter condition input box to display the supported keys , that is, currently supports age, tag, package, level, line, message
insert image description here

filter function

The transition function is a logical AND or combination of multiple conditional units. The conditional unit is key plus filtering content. The
basic filtering rules are as follows

1、key + : 内容 // 内容支持正侧
2、kye加~加缀就是非逻辑,即排除的过滤条件
3、key加~后缀就开否正侧,过滤的内容是正侧表达式
4、不同的key条件单元,他们之间是 AND的关系
5、相同的key条件单元,他们之前是OR的关系
6、使用括号加逻辑符可以进行条件单元与或(符号里边的条件单元之间用 | 、&连接)
7、其它的规侧可以点击Next TIP了解!!!!!!!

The example of the same key condition unit
insert image description here
uses the example
insert image description here
age on the positive side: supports the unit of day and hour, and
insert image description here
performs conditional logic operations in xd, xh brackets.
Filter the logs whose tag is DeviceMonitorPowerKit, the substring of the log content is interval or the error level is ERROR
insert image description here

Fall back to the old version

If you are not used to the new version, you can switch back to the old version of Logcat in the configuration
as shown in the figure below, and uncheck Enable new Logcat tool window.
insert image description here

related documents

Guess you like

Origin blog.csdn.net/SCHOLAR_II/article/details/127654941