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,16 +53,23 @@ namespace OpenSim.Framework.Console
|
|||
|
||||
public void Write(string format, params object[] args)
|
||||
{
|
||||
Log.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);
|
||||
Log.Flush();
|
||||
if(!disableOutput)
|
||||
{
|
||||
System.Console.Write(format, args);
|
||||
System.Console.WriteLine(format, args);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
public void WriteLine(string format, params object[] args)
|
||||
public void WriteLine(LogPriority importance, string format, params object[] args)
|
||||
{
|
||||
Log.WriteLine(format, args);
|
||||
Log.Flush();
|
||||
|
|
Loading…
Reference in New Issue