mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user