This is not an answer, but I open log files with notepad++ all the time and
I don't have the MinimalLock flag set.  There must be a way...

On Feb 18, 2008 4:45 AM, Beyers Cronje <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> Quick question. I am using a RollingLogFileAppender on a webservice.
> Logging works 100%, but whenever I try to open the log file for reading in
> another process I get a sharing violation on the log file. I open the file
> with:
>
> FileStream file = new FileStream(fileName, FileMode.Open, FileAccess.Read,
> FileShare.Read);
>
> Would I have to enable MinimalLock, or is there a way to use ExclusiveLock
> and have another process read from the log file ?
>
> Kind regards
>
> Beyers Cronje
>

Reply via email to