diff --git a/src/NReco.Logging.File/FileLoggerProvider.cs b/src/NReco.Logging.File/FileLoggerProvider.cs index 12abcc4..61e26e9 100644 --- a/src/NReco.Logging.File/FileLoggerProvider.cs +++ b/src/NReco.Logging.File/FileLoggerProvider.cs @@ -217,7 +217,7 @@ void createLogFileStream(bool append) { // so there is no need for a "manual" check first. fileInfo.Directory.Create(); - LogFileStream = new FileStream(LogFileName, FileMode.OpenOrCreate, FileAccess.Write); + LogFileStream = new FileStream(LogFileName, FileMode.OpenOrCreate, FileAccess.Write, FileShare.Read); if (append) { LogFileStream.Seek(0, SeekOrigin.End); } else {