Why we need two times write handlers in tomcat logging.properties?

后端 未结 2 519
太阳男子
太阳男子 2020-11-30 10:55

From docs:

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


        
2条回答
  •  温柔的废话
    2020-11-30 11:32

    The first line declares the set of handlers that can/will be used, the second one assigns handlers to the specific logger (in this case root logger as .handlers is not prefixed with anything).

    Later on in logging.properties each handler is configured.

提交回复
热议问题