ppkarwasz commented on PR #3093:
URL: https://github.com/apache/logging-log4j2/pull/3093#issuecomment-2418651417

   > ```properties
   > #队列满时放弃日志操作
   > log4j2.AsyncQueueFullPolicy=Discard
   > #队列满时放弃级别小于等于指定级别的日志,默认值INFO
   > log4j2.DiscardThreshold=INFO
   > #开启日志全异步。System.setProperty或者启动参数方式生效场景有:开发环境和jar包方式启动,而tomcat环境却不生效
   > 
Log4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
   > #当队列满时同步入列,这是默认值,实际还是走AsyncQueueFullPolicy策略
   > #AsyncLoggerConfig.SynchronizeEnqueueWhenQueueFull=true
   > #队列长度,Disruptor使用的不是真正意义上的队列,而是类似于计数器+事件的方式。
   > #AsyncLoggerConfig.RingBufferSize=131072
   > ```
   
   This is unrelated to your problem, but I wanted to give you the heads up 
that we change the **official** names of the properties you are using in 
version 2.10 to 
[`log4j2.asyncQueueFullPolicy`](https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.asyncQueueFullPolicy),
 
[`log4j2.discardThreshold`](https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.discardThreshold),
 
[`log4j2.contextSelector`](https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.contextSelector),
 
[`log4j2.asyncLoggerSynchronizeEnqueueWhenQueueFull`](https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.asyncLoggerSynchronizeEnqueueWhenQueueFull)
 and 
[`log4j2.asyncLoggerRingBufferSize`](https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.asyncLoggerRingBufferSize).
 The old property names are supported for backward compatibility, but support 
for them will be dropped in `3.0.0`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to