You are obsolete. You will be EXTER-MIN-ATE-D. EXTER-MIN-ATE!

zircon^2
Adam Frisby 2007-05-12 14:55:22 +00:00
parent dcdef3599d
commit 06ffeb22d9
1 changed files with 24 additions and 6 deletions

View File

@ -5,6 +5,17 @@ namespace OpenSim.Framework.Console
{
public class ConsoleBase
{
public enum LogPriority : int
{
CRITICAL,
HIGH,
MEDIUM,
NORMAL,
LOW,
VERBOSE,
EXTRAVERBOSE
}
StreamWriter Log;
public conscmd_callback cmdparser;
public string componentname;
@ -42,15 +53,11 @@ namespace OpenSim.Framework.Console
public void Write(string format, params object[] args)
{
Log.Write(format, args);
Log.Flush();
if(!disableOutput)
{
System.Console.Write(format, args);
}
WriteLine(LogPriority.NORMAL,format,args);
return;
}
[Obsolete("WriteLine(msg,args) has been depreciated, use WriteLine(priority,msg,args) instead.")]
public void WriteLine(string format, params object[] args)
{
Log.WriteLine(format, args);
@ -62,6 +69,17 @@ namespace OpenSim.Framework.Console
return;
}
public void WriteLine(LogPriority importance, string format, params object[] args)
{
Log.WriteLine(format, args);
Log.Flush();
if (!disableOutput)
{
System.Console.WriteLine(format, args);
}
return;
}
public string ReadLine()
{
string TempStr = System.Console.ReadLine();