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,12 +50,16 @@ namespace ln.logging
{ {
throw new ObjectDisposedException("FileLogger has already been disposed"); throw new ObjectDisposedException("FileLogger has already been disposed");
} }
lock (writer)
{
foreach (String line in lines) foreach (String line in lines)
{ {
writer.WriteLine(line); writer.WriteLine(line);
writer.Flush(); writer.Flush();
} }
} }
}
} }