diff options
author | Sean Dague | 2007-09-12 10:54:34 +0000 |
---|---|---|
committer | Sean Dague | 2007-09-12 10:54:34 +0000 |
commit | 26a67d998cb984eaecbce7ba7306ed5b84f68de0 (patch) | |
tree | a91de5ca7aba17ec3a6258170ba067ffd7353398 /OpenSim | |
parent | Fixed DNS resolve bug for Grid mode on multi-Homer systems. (diff) | |
download | opensim-SC_OLD-26a67d998cb984eaecbce7ba7306ed5b84f68de0.zip opensim-SC_OLD-26a67d998cb984eaecbce7ba7306ed5b84f68de0.tar.gz opensim-SC_OLD-26a67d998cb984eaecbce7ba7306ed5b84f68de0.tar.bz2 opensim-SC_OLD-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')
-rw-r--r-- | OpenSim/Framework/Console/LogBase.cs | 3 |
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) |