log4j2: Location for setting Log4jContextSelector system property for asynchronous logging

前端 未结 4 1908
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 17:45

I am attempting to set up asynchronous logging (for performance reasons) within REST web methods that currently run in a liberty profile server.

In order to do this, I h

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-05 18:36

    So apparently I needed to add a line to the jvm.options file

    -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
    

    The jvm.options file is located here:

    ${server.config.dir}/jvm.options
    

    And that directory can be found by using the link:

    http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/rwlp_dirs.html?cp=SSEQTP_8.5.5%2F1-3-11-0-2-0

    In my case it is at: C:\eclipse\runtime\usr\servers\serverName

提交回复
热议问题