aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Common/OpenSim.Framework.Console/LogBase.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/Common/OpenSim.Framework.Console/LogBase.cs b/Common/OpenSim.Framework.Console/LogBase.cs
index b625b75..1a92d8e 100644
--- a/Common/OpenSim.Framework.Console/LogBase.cs
+++ b/Common/OpenSim.Framework.Console/LogBase.cs
@@ -125,9 +125,17 @@ namespace OpenSim.Framework.Console
125 Log.Flush(); 125 Log.Flush();
126 if (!m_silent) 126 if (!m_silent)
127 { 127 {
128 System.Console.ForegroundColor = color; 128 try
129 System.Console.WriteLine(format, args); 129 {
130 System.Console.ResetColor(); 130 System.Console.ForegroundColor = color;
131 System.Console.WriteLine(format, args);
132 System.Console.ResetColor();
133 }
134 catch (System.ArgumentNullException)
135 {
136 // Some older systems dont support coloured text.
137 System.Console.WriteLine(format, args);
138 }
131 } 139 }
132 return; 140 return;
133 } 141 }