AxibugEmuOnline/AxibugEmuOnline.Server/Manager/LogManager.cs
2024-11-11 19:21:35 +08:00

37 lines
969 B
C#

namespace AxibugEmuOnline.Server.Manager
{
public class LogManager
{
public void Info(string str)
{
Console.WriteLine(str);
}
public void DebugCmd(string str)
{
ConsoleColor srcColor = Console.ForegroundColor;
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine($"[{DateTime.Now.ToString("hh:mm:ss.fff")}][{str}]");
Console.ForegroundColor = srcColor;
}
public void Debug(string str)
{
Console.WriteLine($"[{DateTime.Now.ToString("hh:mm:ss.fff")}][{str}]");
//Console.WriteLine(str);
}
public void Warning(string str)
{
Console.WriteLine(str);
}
public void Error(string str)
{
Console.WriteLine(str);
}
public void Log(int logtype, string str)
{
Console.WriteLine(str);
}
}
}