On 2014-01-06, [email protected] wrote: > I am using log4net 1.2.10. It has been stated on this forum that from 1.2.9 > onwards, different file locking schemas are available.
At least 1.2.11 had a bunch of fixes WRT locking so better watch out, the current release is 1.2.13. > I have configured log4net as per examples given to use a non-default > method (minimal-locking or interprocess locking) but the immediate > effect is the following error message: Can you tell us where you found the example, because this > log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [lockingModel] > to set object on > [log4net.Repository.Hierarchy.DefaultLoggerFactory+LoggerImpl] is caused by > <logger name="Matrix.Trace"> > <level value="OFF" /> > <lockingModel > type="log4net.Appender.FileAppender+InterProcessLock" > /> > <appender-ref ref="RollingFileAppenderTRACE" /> > </logger> where you use lockingModel at the logger - it is a property of the appender, so should be used nested into your definition of RollingFileAppenderTRACE. Stefan
