Log4j2 AsyncLogger with rolling file appender not showing file line number

前端 未结 1 685
别那么骄傲
别那么骄傲 2021-02-15 17:06

Im using log4j2 with following dependencies:


    
        org.apache.logging.log4j
                


        
相关标签:
1条回答
  • 2021-02-15 17:23

    First, remove the Async appender, and point the appender-ref of the AsyncLogger to the ProcessorLoggingFile directly. Second, you must add includeLocation="true" on the AsyncLogger.

    Having an async appender in addition to an async logger does not help and in this case might be what prevents the includeLocation from working correctly.

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