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
. 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 +
space in the filter condition input box to display the supported keys , that is, currently supports age, tag, package, level, line, message
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
uses the example
age on the positive side: supports the unit of day and hour, and
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
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.