-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The immediateFlush
option in both rolling file appenders is ignored
#2025
Comments
The property is used in |
The SAST tool is right: It would be useful to remove the property from |
Oh, then consider this a bug for that. Unused fields are a bug. |
Hi,
Use the force method,the file be updated in real time. But affects performance. Rewrite RollingRandomAccessFileManager and RandomAccessFileManager flush method. Add the code above. |
@jvz, I investigated the effects of
|
@ppkarwasz sounds like a good idea to me! |
Actually there is another usage of If |
Description
Both the
RollingFileAppender
andRollingRandomAccessFileAppender
plugins offer a boolean flag,immediateFlush
, to allow for immediate flushing of buffers when writing data. This option is ultimately discarded when creating the correspondingRollingFileManager
andRollingRandomAccessFileManager
instances.Configuration
Version: 2.x and main
Operating system: all
JDK: all
Logs
n/a
Reproduction
The amusing part is that we have tons of tests that set
immediateFlush
totrue
orfalse
, yet none of these tests verify that it does anything.The text was updated successfully, but these errors were encountered: