aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/OpenSim.Framework.Console/ConsoleBase.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-20 15:50:06 +0000
committerAdam Frisby2007-06-20 15:50:06 +0000
commit29053589bff370916f4067dade70969499f77ce3 (patch)
tree582e2c839ce2e681dc98087bb12c71241641ffc6 /Common/OpenSim.Framework.Console/ConsoleBase.cs
parent* Removed ClientThreads from avatar (diff)
downloadopensim-SC-29053589bff370916f4067dade70969499f77ce3.zip
opensim-SC-29053589bff370916f4067dade70969499f77ce3.tar.gz
opensim-SC-29053589bff370916f4067dade70969499f77ce3.tar.bz2
opensim-SC-29053589bff370916f4067dade70969499f77ce3.tar.xz
* Replaced old logging mechanism with new shiny logging mechanism
* Console, I bid thee farewall. Use "Log" now where console used to exist.
Diffstat (limited to '')
-rw-r--r--Common/OpenSim.Framework.Console/LogBase.cs (renamed from Common/OpenSim.Framework.Console/ConsoleBase.cs)20
1 files changed, 4 insertions, 16 deletions
diff --git a/Common/OpenSim.Framework.Console/ConsoleBase.cs b/Common/OpenSim.Framework.Console/LogBase.cs
index 80a28e9..b625b75 100644
--- a/Common/OpenSim.Framework.Console/ConsoleBase.cs
+++ b/Common/OpenSim.Framework.Console/LogBase.cs
@@ -41,14 +41,14 @@ namespace OpenSim.Framework.Console
41 EXTRAVERBOSE 41 EXTRAVERBOSE
42 } 42 }
43 43
44 public class ConsoleBase 44 public class LogBase
45 { 45 {
46 StreamWriter Log; 46 StreamWriter Log;
47 public conscmd_callback cmdparser; 47 public conscmd_callback cmdparser;
48 public string componentname; 48 public string componentname;
49 private bool m_silent; 49 private bool m_silent;
50 50
51 public ConsoleBase(string LogFile, string componentname, conscmd_callback cmdparser, bool silent ) 51 public LogBase(string LogFile, string componentname, conscmd_callback cmdparser, bool silent )
52 { 52 {
53 this.componentname = componentname; 53 this.componentname = componentname;
54 this.cmdparser = cmdparser; 54 this.cmdparser = cmdparser;
@@ -77,19 +77,7 @@ namespace OpenSim.Framework.Console
77 Notice(format,args); 77 Notice(format,args);
78 return; 78 return;
79 } 79 }
80 80
81 [Obsolete("WriteLine(msg,args) has been depreciated, use WriteLine(priority,msg,args) instead.")]
82 public void WriteLine(string format, params object[] args)
83 {
84 Log.WriteLine(format, args);
85 Log.Flush();
86 if (!m_silent)
87 {
88 System.Console.WriteLine(format, args);
89 }
90 return;
91 }
92
93 public void WriteLine(LogPriority importance, string format, params object[] args) 81 public void WriteLine(LogPriority importance, string format, params object[] args)
94 { 82 {
95 Log.WriteLine(format, args); 83 Log.WriteLine(format, args);
@@ -226,7 +214,7 @@ namespace OpenSim.Framework.Console
226 cmdparser.Show(ShowWhat); 214 cmdparser.Show(ShowWhat);
227 } 215 }
228 216
229 public void MainConsolePrompt() 217 public void MainLogPrompt()
230 { 218 {
231 string[] tempstrarray; 219 string[] tempstrarray;
232 string tempstr = this.CmdPrompt(this.componentname + "# "); 220 string tempstr = this.CmdPrompt(this.componentname + "# ");