I set the app.config for log4net as below in order to log some message every changed status.
I input additivity="false" after googling, but the duplicated message is still logged.
Would you please advice me to correct the below config so that duplicated message can be disapprearing?
<appender name="APP_TRACE_ONCE_LOG_EVENTREF" type="log4net.Appender.RollingFileAppender" additivity="false">
<File value="C:\Edwards\HMI\Test\TraceOnce\"/>
<AppendToFile value="true"/>
<MaxSizeRollBackups value="100"/>
<DatePattern value="TraceOnce_dd.MM.yyyy.'log'"/>
<MaximumFileSize value="512KB"/>
<RollingStyle value="Composite"/>
<StaticLogFileName value="false"/>
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/>
<layout type="log4net.Layout.PatternLayout">
<ConversionPattern value="[%-5p][%d]-[%m]%n"/>
</layout>
</appender>
<logger name="APP_TRACE_ONCE_LOG_CONFIG">
<level value="ALL"/>
<appender-ref ref="APP_TRACE_ONCE_LOG_EVENTREF"/>
</logger>