Additional changes for MGSH

This commit is contained in:
2025-04-08 22:27:47 -04:00
parent f4511419ba
commit 531fd61575
4 changed files with 29 additions and 15 deletions

View File

@@ -72,6 +72,20 @@ namespace MarketData
Console.WriteLine(message);
Flush();
}
/// <summary>WriteLine - Writes a line of text to trace log.</summary>
/// <param name="message">string content of message to write.</param>
/// <returns>void</returns>
public static void WriteLine(LogLevel logLevel,ConsoleColor consoleColor,string message)
{
if(MDTrace.logLevel<logLevel)return;
Trace.WriteLine(GetCallerIP()+GetThreadRep()+GetLogLevelRep()+"["+DateTime.Now.ToString()+"]"+" "+GetMethodInfo()+message);
ConsoleColor currentColor=Console.ForegroundColor;
Console.ForegroundColor = consoleColor;
Console.WriteLine(message);
Console.ForegroundColor=currentColor;
Flush();
}
/// <summary>Indent - set trace log indentation.</summary>
/// <returns>void</returns>
public static void Indent()