mirror of
https://git.battle-of-pip.de/root/vpr-mitarbeiterverwaltung.git
synced 2025-10-15 02:24:53 +02:00
First Server Test | Next Update: Change Commands to Attributes
This commit is contained in:
@@ -37,6 +37,11 @@ public class MessageSender
|
||||
}
|
||||
|
||||
|
||||
public async void Debug(string message)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
this.Send($"[{DateTime.Now}] [DEBUG] {message}");
|
||||
}
|
||||
public async void Log(string message)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Gray;
|
||||
@@ -76,6 +81,8 @@ public class MessageSender
|
||||
int i = 0;
|
||||
foreach (var s in messageHistory)
|
||||
{
|
||||
if (s.Contains("[DEBUG]"))
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
if (s.Contains("[INFO ]"))
|
||||
Console.ForegroundColor = ConsoleColor.Gray;
|
||||
if (s.Contains("[WARN ]"))
|
||||
|
Reference in New Issue
Block a user