Modifying java.util.logging.SimpleFormatter format property under Tomcat

后端 未结 5 2018
孤街浪徒
孤街浪徒 2020-12-15 21:04

I am using Tomcat 7.0.28, running under OpenJDK 1.7 on Ubuntu, and am trying to modify the formatting string used by java.util.logging.SimpleFormatter. According to the Jav

5条回答
  •  庸人自扰
    2020-12-15 21:40

    Thanks to info in the bug report pointed out by nolan6000 I finally got this working with tomcat-juli.

    Instead of:

    java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n
    

    it has to be:

    1catalina.java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n
    

提交回复
热议问题