If multiple application log into the same logfile. Will that impact the performance? I assume multiple app will have to wait the lock to get access the logfile.
Thanks. On Apr 6, 2005 2:51 AM, Nicko Cadell <[EMAIL PROTECTED]> wrote: > See the third FileAppender example at: > http://logging.apache.org/log4net/release/config-examples.html#HC-993652 > 3 > > the correct syntax is: > <lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> > > Cheers, > Nicko > > > -----Original Message----- > > From: Bozydar Sobczak [mailto:[EMAIL PROTECTED] > > Sent: 06 April 2005 08:38 > > To: [email protected] > > Subject: lockingModel problem > > > > Hi! > > How to write log4net configuration section to have access to > > log file? I have ASP.NET application and section in > > web.config like this: > > <log4net> > > <appender name="FileAppender" > > type="log4net.Appender.FileAppender"> > > <file value="Logs\logs.xml" /> > > <appendToFile value="true" /> > > <ImmediateFlush value="True" /> > > <lockingModel > > value="log4net.Appender.FileAppender.MinimalLock" /> <!-- How > > to write it???? --> > > <layout type="log4net.Layout.PatternLayout"> > > > > <conversionPattern value="%date %logger > > %message %newline" /> > > </layout> > > </appender> > > <root> > > <level value="INFO" /> > > <appender-ref ref="FileAppender" /> > > </root> > > </log4net> > > After first writing to the log file, I have no access to it > > from another programs. > > > > Regards, > > Bozydar Sobczak > > >
