aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/LogBase.cs
diff options
context:
space:
mode:
authorSean Dague2007-09-12 10:54:34 +0000
committerSean Dague2007-09-12 10:54:34 +0000
commit26a67d998cb984eaecbce7ba7306ed5b84f68de0 (patch)
treea91de5ca7aba17ec3a6258170ba067ffd7353398 /OpenSim/Framework/Console/LogBase.cs
parentFixed DNS resolve bug for Grid mode on multi-Homer systems. (diff)
downloadopensim-SC-26a67d998cb984eaecbce7ba7306ed5b84f68de0.zip
opensim-SC-26a67d998cb984eaecbce7ba7306ed5b84f68de0.tar.gz
opensim-SC-26a67d998cb984eaecbce7ba7306ed5b84f68de0.tar.bz2
opensim-SC-26a67d998cb984eaecbce7ba7306ed5b84f68de0.tar.xz
add timestamps to log messages. This probably needs to all be cleaned up
with a real logging module later, but this should make reading logs easier for now
Diffstat (limited to 'OpenSim/Framework/Console/LogBase.cs')
-rw-r--r--OpenSim/Framework/Console/LogBase.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs
index bcb2b0d..e5025e0 100644
--- a/OpenSim/Framework/Console/LogBase.cs
+++ b/OpenSim/Framework/Console/LogBase.cs
@@ -247,10 +247,13 @@ namespace OpenSim.Framework.Console
247 247
248 private void WriteNewLine(ConsoleColor color, string format, params object[] args) 248 private void WriteNewLine(ConsoleColor color, string format, params object[] args)
249 { 249 {
250 string now = System.DateTime.Now.ToString("[MM-dd hh:mm:ss] ");
251 Log.Write(now);
250 Log.WriteLine(format, args); 252 Log.WriteLine(format, args);
251 Log.Flush(); 253 Log.Flush();
252 if (!m_silent) 254 if (!m_silent)
253 { 255 {
256 System.Console.Write(now);
254 try 257 try
255 { 258 {
256 if (color != ConsoleColor.White) 259 if (color != ConsoleColor.White)