当前位置: 首页 > 图灵资讯 > 技术篇> 设置Tomcat生成的日志文件编码格式为UTF-8

设置Tomcat生成的日志文件编码格式为UTF-8

来源:图灵教育
时间:2023-05-22 09:24:28

设置tomcat生成的日志文件编码utf-8,修改conf/logging.properties,添加编码设置1catalina.org.apache.juli.AsyncFileHandler.level = FINE1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.1catalina.org.apache.juli.AsyncFileHandler.maxDays = 901catalina.org.apache.juli.AsyncFileHandler.encoding=UTF-82locallosthos.org.apache.juli.AsyncFileHandler.level = FINE2localhosthost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs2localhosthost.org.apache.juli.AsyncFileHandler.prefix = localhost.2localhosthost.org.apache.juli.AsyncFileHandler.maxDays = 902localosthoshost.org.apache.juli.AsyncFileHandler.encoding=UTF-83manager.org.apache.juli.AsyncFileHandler.level = FINE3manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs3manager.org.apache.juli.AsyncFileHandler.prefix = manager.3manager.org.apache.juli.AsyncFileHandler.maxDays = 903mananger.org.apache.juli.AsyncFileHandler.encoding=UTF-84host-manager.org.apache.juli.AsyncFileHandler.level = FINE4host-manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.4host-manager.org.apache.juli.AsyncFileHandler.maxDays = 904host-manager.org.apache.juli.AsyncFileHandler.encoding=UTF-8java.util.logging.ConsoleHandler.level = FINEjava.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatterjava.util.logging.ConsoleHandler.encoding=UTF-8

上一篇:

学生出勤记录 I

下一篇:

Windows配置mycat