[Solution] when log4j2 configuration log print area

Log set the time zone:

<!--log4j2 配置timezone -->
<property name="LOG_PATTERN" value="%date{yyyy-MM-dd HH:mm:ss.SSS}{GMT+8} %-5level [%thread] %logger{36}-[%M]-[%L] - %msg%n" />

{GMT + 8} may log printing date: GMT +8 hours, i.e. China time zone.

Published 147 original articles · won praise 88 · Views 140,000 +

Guess you like

Origin blog.csdn.net/zpwangshisuifeng/article/details/104621681