public void WriteText(string text)
{
Console.ForegroundColor = Color;
Console.Write(sb.Clear().Append(Prefix).Append(spacer).ToString());
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine(text);
}
LogType::WriteText ( string text, ConsoleColor color ) : void |
/// <summary> /// Writes text to the console on a new line, using the specified log prefix, and a color for the rest of the text /// </summary> public static void WriteLine(LogType type, ConsoleColor color, string text) { type.WriteText(text, color); }