#logs files not getting generated after deletion at runtime

10 messages · Page 1 of 1 (latest)

raven crow
#

We have a pringboot application running in podman container and we are doing some system testing on our application and the testers have found that if they delete the log file, log4j is not recreating it, or creating and populating a new one, while the application is running. In order to have the file created and populated, the application needs to be restarted.

gaunt geyserBOT
#

This post has been reserved for your question.

Hey @raven crow! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

daring gulch
#

somewhat expected, you wouldn't expect that file to be deleted in the progress of the program running

raven crow
#

but anyways I have mounted that directory so even if I delete that file and any new logs are coming then it should ideally create thos files.Isn't that the right behaviour?

strong hound
#

The right behavior is not to delete an open file

raven crow
#

Is there any solution to this like any springboot releated or log4j2.xml releated or its like we just don't delete that?

strong hound
#

It's not the sort of things someone would know. There are obviously ways to make your own fixes, but they would probably be very inefficient.

gaunt geyserBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

gaunt geyserBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.