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.
#logs files not getting generated after deletion at runtime
10 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @raven crow! Please use
/closeor theClose Postbutton 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.
somewhat expected, you wouldn't expect that file to be deleted in the progress of the program running
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?
The right behavior is not to delete an open file
Is there any solution to this like any springboot releated or log4j2.xml releated or its like we just don't delete that?
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.
💤 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.
💤 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.