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