Skip to content

The immediateFlush option in both rolling file appenders is ignored #2025

Open
@jvz

Description

@jvz

Description

Both the RollingFileAppender and RollingRandomAccessFileAppender plugins offer a boolean flag, immediateFlush, to allow for immediate flushing of buffers when writing data. This option is ultimately discarded when creating the corresponding RollingFileManager and RollingRandomAccessFileManager 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 to true or false, yet none of these tests verify that it does anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenders:RollingAffects log file rolling functionalitybugIncorrect, unexpected, or unintended behavior of existing code

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions