Files
EndlessHostRoles/Modules/LogHandler/LogHandler.cs
T
2023-08-14 18:08:01 +02:00

25 lines
650 B
C#

using System;
namespace TOHE.Modules;
class LogHandler : ILogHandler
{
public string Tag { get; }
public LogHandler(string tag)
{
Tag = tag;
}
public void Info(string text)
=> Logger.Info(text, Tag, true);
public void Warn(string text)
=> Logger.Warn(text, Tag, true);
public void Error(string text)
=> Logger.Error(text, Tag, true);
public void Fatal(string text)
=> Logger.Fatal(text, Tag, true);
public void Msg(string text)
=> Logger.Msg(text, Tag, true);
public void Exception(Exception ex)
=> Logger.Exception(ex, Tag);
}