Initial commit
This commit is contained in:
21
AntiYoink/Log.cs
Normal file
21
AntiYoink/Log.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user