logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krzysztof Taborski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1490) Log4j2 is creating empty log files.
Date Tue, 02 Aug 2016 09:55:20 GMT

    [ 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message