NoSugarNet/NoSugarNet.ClientCore/Manager/LogManager.cs
2024-04-15 11:30:28 +08:00

31 lines
657 B
C#

namespace NoSugarNet.ClientCore.Manager
{
public class LogManager
{
/// <summary>
/// 日志
/// </summary>
/// <param name="sk"></param>
public delegate void OnLogHandler(int debuglv,string msg);
/// <summary>
/// 内部输出
/// </summary>
public static event OnLogHandler OnLog;
public void Debug(string str)
{
OnLog?.Invoke(0,str);
}
public void Warning(string str)
{
OnLog?.Invoke(1,str);
}
public void Error(string str)
{
OnLog?.Invoke(2,str);
}
}
}