Tomcat logging.properties formatter not taking effect

前端 未结 1 562
萌比男神i
萌比男神i 2021-01-28 05:22

I\'m trying to adjust logging for catalina. My logging.properties for Tomcat looks like:

handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.         


        
相关标签:
1条回答
  • 2021-01-28 05:42

    But I can't get to work formatter for the output

    I would assume that you'll have to modify the start up script so the format property is present before the SimpleFormatter class is loaded.

    The format is forever set once the class is loaded so if the class is loaded before the logging properties is read what you place in the file will be ignored.

    0 讨论(0)
提交回复
热议问题