mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-28 09:39:20 +00:00
25 lines
650 B
C#
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);
|
|
} |