forked from chomp/BotGenerator
make logging more fancy
This commit is contained in:
parent
b305dc16d6
commit
86d197879f
@ -11,7 +11,18 @@ namespace Generator.Helpers
|
|||||||
|
|
||||||
public static void LogToConsole(string message)
|
public static void LogToConsole(string message)
|
||||||
{
|
{
|
||||||
|
Console.BackgroundColor = ConsoleColor.Green;
|
||||||
|
Console.ForegroundColor = ConsoleColor.Black;
|
||||||
|
|
||||||
Console.WriteLine(message);
|
Console.WriteLine(message);
|
||||||
|
|
||||||
|
ResetConsoleColours();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void ResetConsoleColours()
|
||||||
|
{
|
||||||
|
Console.BackgroundColor = ConsoleColor.Black;
|
||||||
|
Console.ForegroundColor = ConsoleColor.White;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user