Eclipse console output log4j log garbled solution

1. The garbled code may be caused by the incompatibility of the encoding format, mainly due to the matching between Eclipse console encoding and log4j encoding.

log4j.properties

 

 

 The main thing is to check whether the encoding in these two places is consistent and inconsistent. If it is inconsistent, manually change it to a consistent encoding, GBK or UTF-8.

Guess you like

Origin blog.csdn.net/qq_54276699/article/details/131673467