I use this and it works fine.

<appender name="rfile" class="org.apache.log4j.RollingFileAppender">
                <param name="file" value="c:/home/logs/my.log" />
                <param name="MaxFileSize" value="10000KB" />
                <!-- Keep one backup file -->
                <param name="MaxBackupIndex" value="5" />
                <layout class="org.apache.log4j.PatternLayout">
                <param name="ConversionPattern" value="[%d{MM-dd-yyyy
HH:mm:ss,SSS}] %-5p %c{1}:%L %m%n" />
                </layout>
        </appender>


-----Original Message-----
From: Kannan.N [mailto:[email protected]] 
Sent: Thursday, April 29, 2010 10:14 AM
To: [email protected]
Subject: Log file not rotating


Hi,

Am using log 4j 1.2.15 and I have processes are running as a service. If
i
restart a service the logs files are not rotated. Kindly help me on
solving
the issue.

Thanks in Advance.
Kannan.N.
-- 
View this message in context:
http://old.nabble.com/Log-file-not-rotating-tp28401107p28401107.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

*This e-mail and any attachments may contain content protected 
under federal law and is also confidential and proprietary in nature. 
If you received this message in error, please notify the sender 
immediately and delete the original and destroy all copies of the 
message and any attachments. Any other use of this e-mail by you 
including retaining, using, copying, distributing, or otherwise 
disclosing this information in any manner is prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to