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.