master
Harald Wolff 2019-03-26 12:53:31 +01:00
parent 8cb2675b8a
commit 4f5f3e4757
1 changed files with 7 additions and 3 deletions

View File

@ -50,10 +50,14 @@ namespace ln.logging
{ {
throw new ObjectDisposedException("FileLogger has already been disposed"); throw new ObjectDisposedException("FileLogger has already been disposed");
} }
foreach (String line in lines)
lock (writer)
{ {
writer.WriteLine(line); foreach (String line in lines)
writer.Flush(); {
writer.WriteLine(line);
writer.Flush();
}
} }
} }