• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

log4j does not create new file after deleting log file while app is running

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I apologize if this question has been covered several times over, I tried doing a search on both the forum and Google and came up with nothing. I am not really sure how to search for this particular problem.

Here is the question: 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.

To me, this seems like a fairly simple no brainer. If the file is deleted, log4j should realize this and create a new file and start populating it. Except that is not what is happening and I cannot seem to find the property config switch to enable this bahviour.

Anyone have any suggestions or links that will point me in the right direction?
[ December 19, 2006: Message edited by: Chris Johnston ]
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic