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.

Reply via email to