Log4j2 设置控制台打印彩色日志

https://www.baidu.com/s?ie=utf-8&tn=02003390_20_hao_pg&wd=%E5%8D%9A%E5%AE%A2%E5%9B%AD%E7%99%BB%E5%BD%95

IDEA中,点击右上角->Edit Configurations,在VM options中添加

-Dlog4j.skipJansi=false

 

<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight{%-5level} [%t] %highlight{%c{1.}.%M(%L)}: %msg%n" />


日志 使用方式

https://www.cnblogs.com/songxingzhu/p/8867817.html

posted @ 2019-04-28 03:31  变换  阅读(5570)  评论(0编辑  收藏  举报