把log颜色修改,方便区分不能类型的log
File->Settings 或Ctrl + Alt +S
找到 Editor / Colors &Fonts / Android Logcat 或在上面的搜索框中输入Logcat 点中Verbose , Info, Debug等选项
然后在后面将Use Inberited attributes 去掉勾选 再将 Foreground 前的复选框选上,就可以双击后面的框框去选择颜色了 Apply–>OK
Log级别 | 色值 |
VERBOSE | BBBBBB |
DEBUG | 0070BB |
INFO | 48BB31 |
WARN | BBBB23 |
ERROR | FF0006 |
ASSERT | 8F0005 |
参考这里