0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-12 22:55:06 +00:00

Shared/Logger: Add Debug log level

This commit is contained in:
Nick Renieris 2022-06-22 20:20:24 +03:00
parent 4656b8af40
commit d3918dd5c6

View file

@ -9,9 +9,11 @@ public class Logger {
public string Name { get; set; }
public void Info(string text) => Handler?.Invoke(Name, "Info", text, ConsoleColor.White);
public void Debug(string text) => Handler?.Invoke(Name, "Debug", text, ConsoleColor.White);
public void Warn(string text) => Handler?.Invoke(Name, "Warn", text, ConsoleColor.Yellow);
public void Info(string text) => Handler?.Invoke(Name, "Info ", text, ConsoleColor.Cyan);
public void Warn(string text) => Handler?.Invoke(Name, "Warn ", text, ConsoleColor.Yellow);
public void Error(string text) => Handler?.Invoke(Name, "Error", text, ConsoleColor.Red);