Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2008, 03:43 PM
Member
 
Join Date: Jun 2008
Posts: 6
ajaykumar_mohini is on a distinguished road
log4j log files are not getting rolled over
log4j logfiles are not getting rolled over
We have an application which uses log4j to log its log messages, we are using rolling file appender and the roll over size is 5MB.
Every thing runs fine when we have only one instance of this application running. The file gets rolled over after crossing 5MB.
We are facing a problem only when we start the same application two times (in two different JVMS). The log file does not get roll over even after crossing 5MB.

We have this problem as two log 4j instances ( running in different JVMS) are accessing the same file in parallel. The case might be that log 4j has a file pointer which is not refreshed when another instance of log 4j (running in different JVM) updates the same file.
Is there any way to refresh the PropertyConfigurator setting.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
log4j log files are not getting rolled over ajaykumar_mohini New To Java 9 06-26-2008 11:18 AM
Regarding Log4j sidiq New To Java 0 04-07-2008 08:35 PM
Log4j chakri New To Java 1 02-08-2008 11:15 PM
log4j swapna_d New To Java 5 01-21-2008 09:49 AM
log4j initialization arfatkhan Web Frameworks 3 08-10-2007 08:42 PM


All times are GMT +3. The time now is 02:17 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org