在服务器部署应用后,日志由logback输出到log文件,但是中文都是乱码。
修改配置后提交,重新部署,显示中文正常
<encoder> <pattern>${log.pattern}</pattern> <charset>UTF-8</charset> </encoder>