ppkarwasz commented on issue #2528: URL: https://github.com/apache/logging-log4j2/issues/2528#issuecomment-2108162517
While restructuring the "Appenders" page we should explain the meaning of the `immediateFlush` option. Looking at #2023, #2025 and other discussions, users often think that `immediateFlush` forces the OS to write the data to the underlying storage device. That is not true, `immediateFlush` only flushes the Java buffers to the OS and due to the atomicity of the UNIX `read()/write()` calls this is usually enough for the users: if the appender logs to a pipe, the receiver should get messages up to [PIPE_BUF](https://man7.org/linux/man-pages/man7/pipe.7.html) atomically. For files and symbolic links [there is no limit](https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_07) and operations should always be atomic. -- 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]
