Actually, RollingLogFileAppender rolls file but not when maximumFileSize has been reached. I noticed that no matter what value I specify for maximumFileSize it rolls file when size reaches approximately maximumFileSize * 8. This suggest some byte/bit conversion bug.

 

Andre

 


From: Piwoni, Andre [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 11:36 AM
To: [email protected]
Subject: Rolling doesn't work based on size

 

RollingLogFileAppender doesn’t roll file based on size. It is used within windows service.

 

Here’s part of my configuration file:

 

<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">

            <file value="${windir}\\ FaxService.log" />

            <appendToFile value="true" />

            <rollingStyle value="Size" />

            <maxSizeRollBackups value="10" />

            <maximumFileSize value="100KB" />

            <staticLogFileName value="false" />

            <layout type="log4net.Layout.PatternLayout">

                        <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" />

            </layout>

</appender>

 

Does anyone have any idea why?

 

Andre

 







E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message.

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized.

 









E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message.

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized.

Reply via email to