aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console
diff options
context:
space:
mode:
authorAdam Frisby2007-07-20 01:32:27 +0000
committerAdam Frisby2007-07-20 01:32:27 +0000
commit765ff13f22ce062066e461b73f0aa6881b4fea29 (patch)
treea69ce2fbbff788416fc0b0fb3f8438f00e95aac1 /OpenSim/Framework/Console
parent* New log functions which include the module name as an argument. (diff)
downloadopensim-SC-765ff13f22ce062066e461b73f0aa6881b4fea29.zip
opensim-SC-765ff13f22ce062066e461b73f0aa6881b4fea29.tar.gz
opensim-SC-765ff13f22ce062066e461b73f0aa6881b4fea29.tar.bz2
opensim-SC-765ff13f22ce062066e461b73f0aa6881b4fea29.tar.xz
* Assortment of Console changes - console messages are now grouped into modules (eg "client", "grid", "terrain", "storage", etc)
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r--OpenSim/Framework/Console/LogBase.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs
index db76861..7d38c3a 100644
--- a/OpenSim/Framework/Console/LogBase.cs
+++ b/OpenSim/Framework/Console/LogBase.cs
@@ -73,14 +73,18 @@ namespace OpenSim.Framework.Console
73 Log.Close(); 73 Log.Close();
74 } 74 }
75 75
76 [Obsolete("Log.WriteLine is obsolete, use Warn / Error / Verbose instead.")]
76 public void Write(string format, params object[] args) 77 public void Write(string format, params object[] args)
77 { 78 {
79 // HOUSEKEEPING : Will remove once use is removed.
78 Notice(format, args); 80 Notice(format, args);
79 return; 81 return;
80 } 82 }
81 83
84 [Obsolete("Log.WriteLine is obsolete, use Warn / Error / Verbose instead.")]
82 public void WriteLine(LogPriority importance, string format, params object[] args) 85 public void WriteLine(LogPriority importance, string format, params object[] args)
83 { 86 {
87 // HOUSEKEEPING : Will remove once use is removed.
84 Log.WriteLine(format, args); 88 Log.WriteLine(format, args);
85 Log.Flush(); 89 Log.Flush();
86 if (!m_silent) 90 if (!m_silent)
@@ -249,6 +253,7 @@ namespace OpenSim.Framework.Console
249 253
250 private void WritePrefixLine(ConsoleColor color, string sender) 254 private void WritePrefixLine(ConsoleColor color, string sender)
251 { 255 {
256 sender = sender.ToUpper();
252 Log.WriteLine("[" + sender + "] "); 257 Log.WriteLine("[" + sender + "] ");
253 Log.Flush(); 258 Log.Flush();
254 259