aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/LogBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Console/LogBase.cs')
-rw-r--r--OpenSim/Framework/Console/LogBase.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs
index 5f16303..119c2cd 100644
--- a/OpenSim/Framework/Console/LogBase.cs
+++ b/OpenSim/Framework/Console/LogBase.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.IO; 29using System.IO;
30using System.Net; 30using System.Net;
31using System.Diagnostics;
31using System.Collections.Generic; 32using System.Collections.Generic;
32 33
33namespace OpenSim.Framework.Console 34namespace OpenSim.Framework.Console
@@ -228,7 +229,21 @@ namespace OpenSim.Framework.Console
228 WriteNewLine(ConsoleColor.Blue, format, args); 229 WriteNewLine(ConsoleColor.Blue, format, args);
229 return; 230 return;
230 } 231 }
232
233 [Conditional("DEBUG")]
234 public void Debug(string format, params object[] args)
235 {
236 WriteNewLine(ConsoleColor.Gray, format, args);
237 return;
238 }
231 239
240 [Conditional("DEBUG")]
241 public void Debug(string sender, string format, params object[] args)
242 {
243 WritePrefixLine(DeriveColor(sender), sender);
244 WriteNewLine(ConsoleColor.Gray, format, args);
245 return;
246 }
232 247
233 private void WriteNewLine(ConsoleColor color, string format, params object[] args) 248 private void WriteNewLine(ConsoleColor color, string format, params object[] args)
234 { 249 {