vertx LoggerHandler not adding logback

前端 未结 3 1460
执念已碎
执念已碎 2021-01-01 01:35

I am trying to use LoggerHandler to log all incoming requests. I am using logback.xml to specify appenders. I am setting system property for logging.

System         


        
3条回答
  •  不思量自难忘°
    2021-01-01 01:58

    I was able to get it to work by setting the VM options as such:

    -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4jLogDelegateFactory
    

    Then in my log4j.properties, I had to add this:

    log4j.category.io.vertx = TRACE
    

提交回复
热议问题