ramanathan1504 commented on issue #4480:
URL: 
https://github.com/apache/logging-log4j2/issues/4480#issuecomment-6872307020

   Thanks, confirmed: `MemoryMappedFileAppender.Builder.build()` hands the 
configured value to the manager but a literal `false` to the appender, so the 
mapped buffer is only forced at end of batch, remap or close. Same on `2.x` and 
`main`.
   Your one-line fix is the right one. A PR against `2.x` with a test in 
`MemoryMappedFileAppenderTest` asserting `getImmediateFlush()` for both values, 
plus a changelog entry like `4262_console_immediate_flush.xml`, would be 
welcome.


-- 
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