The moose likes Other Open Source Projects and the fly likes  Unable to create log file back ups on AIX Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark " Unable to create log file back ups on AIX" Watch " Unable to create log file back ups on AIX" New topic
Author

Unable to create log file back ups on AIX

Siddiq Hussain
Greenhorn

Joined: Sep 08, 2005
Posts: 1
Hello,

I am using log4j in my application as logging mechanism.It is working fine on Windows.The problem is only when the application is in production environment where it has to run on AIX operating system.It is not able to create backups once the log file size is equal to size specified in configuration file.

<appender name="code1" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="info" />
<param name="File" value="Code1.log" />
<param name="Append" value="true" />
<param name="MaxFileSize" value="1000KB" />
<param name="MaxBackupIndex" value="15" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd-MMM-yyyy hh:mm:ss} %-5p - %m%n" />
</layout>
</appender>


Once the size of Code1.log reaches 1000kb ,new file should be created.It is working fine on Windows but on AIX it is not creating new file named Code1.log.1, instead logging into the same log file ie Code1.log even though size of the log file has reached maxmimum limit.

Any one can please suggest any ideas.

Thanks in advance,
Siddiq.
 
 
subject: Unable to create log file back ups on AIX
 
Threads others viewed
how to create daily server logs in jBoss
DailyRollingFileAppender rolling after 489KB
log4j log file name configuration
log4j.xml No appenders could be found for logger()
weired pursing error :log4j
MyEclipse, The Clear Choice