[
https://issues.apache.org/jira/browse/LOG4J2-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16129555#comment-16129555
]
Remko Popma commented on LOG4J2-2019:
-------------------------------------
Interesting question. A simple program to reproduce this would be a program
that creates a FileOutputStream, and writes to this stream in a loop. Then,
outside your program, delete the file while the program is still running.
Perhaps this is more a general question about FileOutputStream than Log4j...
> Where does the LogEvents go when the active log file is deleted?
> ----------------------------------------------------------------
>
> Key: LOG4J2-2019
> URL: https://issues.apache.org/jira/browse/LOG4J2-2019
> Project: Log4j 2
> Issue Type: Question
> Components: Appenders, Core
> Affects Versions: 2.8.2
> Environment: Server - Apache Tomcat - 8
> OS - CentOS7
> Reporter: Deepak Khobragade
> Priority: Critical
> Fix For: 2.8.2
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> I am using Log4j2 for logging and I've observed that when the Log4j2 is
> actively writing to a log file and if we delete that file, Log4j2 does not
> create a new file and also does not throw any errors. I searched that if the
> LogEvent is sent to System.err() in catalina.out as well but could not find
> the LogEvent there as well.
> Can someone please help me find out where exactly are these events sent to in
> the above situation?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)