Yuriy,

Supporting different file locking and sharing modes is something that we
are planning to add to log4net.

Thanks,
Nicko

> -----Original Message-----
> From: Yuriy Baltovsky [mailto:[EMAIL PROTECTED] 
> Sent: 28 October 2004 07:55
> To: [email protected]
> Subject: FileAppender share reading
> 
> Hi.
> I am using log4net 1.2.0-beta8.
> I use FileAppender to log into file. The problem arrives when 
> I try to read log file in order to show log entries.
> As I discovered from source, log4net uses
> 
> new StreamWriter(string fileName, bool append, encoding) call 
> to open the file.
> 
> Is it possible to use
> 
> new StreamWriter(new FileStream(fileName, append ? FileMode.Append :
> FileMode.Create, FileAccess.ReadWrite, FileShare.Read), 
> m_encoding) call instead.
> 
> This will allow reading from the log file. Or introduce a 
> parameter into FileAppender to allow share reading?
> Is there some reason not to allow share reading from log 
> file? If yes, how one can resolve this problem?
> 
> Sincerely,
> Yuriy Baltovsky
> 
> 

Reply via email to