[
https://issues.apache.org/jira/browse/LOG4J2-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15403698#comment-15403698
]
Krzysztof Taborski commented on LOG4J2-1490:
--------------------------------------------
Yes - seems like similar problem.
I believe it would be better to actually create log file when first message is
being logged (to this file).
> Log4j2 is creating empty log files.
> -----------------------------------
>
> Key: LOG4J2-1490
> URL: https://issues.apache.org/jira/browse/LOG4J2-1490
> Project: Log4j 2
> Issue Type: Improvement
> Components: Appenders
> Affects Versions: 2.6.2
> Reporter: Krzysztof Taborski
> Priority: Minor
>
> I've started migration from logback and found out one quite annoying issue:
> since I often change logDirectory for FileAppenders I'm getting a lot of
> empty log files.
> As far as I know log4j2 is creating file (according to FileAppender) even if
> there is no output. Maybe such feature should be parametrized?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]