You are obsolete. You will be EXTER-MIN-ATE-D. EXTER-MIN-ATE!
parent
dcdef3599d
commit
06ffeb22d9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue