Flush() the log

0.1-prestable
gareth 2007-05-07 00:11:44 +00:00
parent 315e4dede6
commit b6487e4aaa
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ namespace OpenSim.Framework.Console
public void Write(string format, params object[] args) public void Write(string format, params object[] args)
{ {
Log.Write(format, args); Log.Write(format, args);
Log.Flush();
if(!disableOutput) if(!disableOutput)
{ {
System.Console.Write(format, args); System.Console.Write(format, args);
@ -53,7 +54,8 @@ namespace OpenSim.Framework.Console
public void WriteLine(string format, params object[] args) public void WriteLine(string format, params object[] args)
{ {
Log.WriteLine(format, args); Log.WriteLine(format, args);
if(!disableOutput) Log.Flush();
if(!disableOutput)
{ {
System.Console.WriteLine(format, args); System.Console.WriteLine(format, args);
} }