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 nowafrisby
parent
5ade01bb49
commit
26a67d998c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue