From 26a67d998cb984eaecbce7ba7306ed5b84f68de0 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 12 Sep 2007 10:54:34 +0000 Subject: 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 --- OpenSim/Framework/Console/LogBase.cs | 3 +++ 1 file changed, 3 insertions(+) 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 private void WriteNewLine(ConsoleColor color, string format, params object[] args) { + string now = System.DateTime.Now.ToString("[MM-dd hh:mm:ss] "); + Log.Write(now); Log.WriteLine(format, args); Log.Flush(); if (!m_silent) { + System.Console.Write(now); try { if (color != ConsoleColor.White) -- cgit v1.1