RoR2-AntiYoink/AntiYoink/Log.cs

22 lines
737 B
C#
Raw Permalink Normal View History

2024-09-15 18:49:00 +01:00
using BepInEx.Logging;
namespace AntiYoink
{
internal static class Log
{
private static ManualLogSource _logSource;
internal static void Init(ManualLogSource logSource)
{
_logSource = logSource;
}
internal static void Debug(object data) => _logSource.LogDebug(data);
internal static void Error(object data) => _logSource.LogError(data);
internal static void Fatal(object data) => _logSource.LogFatal(data);
internal static void Info(object data) => _logSource.LogInfo(data);
internal static void Message(object data) => _logSource.LogMessage(data);
internal static void Warning(object data) => _logSource.LogWarning(data);
}
}