apache / apache/logging-log4j2

RollingFileAppender with createOnDemand=true creates directories on a path eagerly (on initialization)

Open
#2,647 0 comments 1 reaction 0 assignees View on GitHub
waiting-for-maintainer
Dominant language
Java
Stars
3.6k
Forks
1.7k
Avg merge
21h 30m
Merged PRs (30d)
27

Description

The RollingFileAppender with createOnDemand=true creates directories on the path to a log file even if it never writes to the log file.

For example, if the log file is in /f/dummy.log and the folder f doesn’t exist, the folder f is not created lazily as the file dummy.log is.

I think, the expected behavior is that RollingFileAppender with createOnDemand=true setting creates directories on a path lazily at the same time as the log file is created.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.