-
Notifications
You must be signed in to change notification settings - Fork 21
Add color to eclipse console output by log level
jiwenxing edited this page Jul 14, 2017
·
1 revision
如果你希望console里的日志能够按照不同的级别有不同的着色,如下图这样便于查看错误和异常日志,有一个很好用的eclipse插件Grep console
可以帮你实现。
首先安装Grep console插件,在help页签eclipse market中搜索Grep console并安装(完成后需要重启eclipse),然后在preferences中进行设置如下图,一定注意将expression由.*(\Q[FATAL]\E).*
改为.*(\QFATAL\E).*
,要不然不会生效。
另外可以在windows页签view中选择将grep view窗口展示出来,可以将一些日志过滤到grep view中,便于查看。
关于grep console的更多设置及其含义可以参考以下链接:
好记性不如烂笔头
- Home
- Why Spring Boot
- Getting Started
- Using Spring Boot
- Customizing the Banner
- Spring Boot Log
- Bean Configuration by Properties Files
- Different Environment Using Different Profile
- Web Developing
- Using Database
- Using RestTemplate
- JavaMailSender
- Cross-Origin Resource Sharing (CORS)
- Schedule Task
- Spring Events
- Spring @Conditional Annotation