Skip to content

StatusLogger dest=file.log property creates an empty file #3579

@voddan

Description

@voddan

Description

I specified <Configuration dest="file.log"> in my log4j2.xml.
I expected the status logger messages to be redirected to that file. Instead the file.log was created, but it remained empty, and all the status logging messages were printed to console as before.

Configuration

Version: 2.24.3

Operating system: Windows 11

JDK: Amazon Correto 17.0.12

Reproduction

  1. Specify <Configuration dest="file.log"> in log4j2.xml.
  2. file.log is created, but is empty
  3. Status logs are still in the console

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions