23 lines
683 B
C#
23 lines
683 B
C#
using BepInEx.Logging;
|
|
|
|
namespace GlitchRestore;
|
|
|
|
internal static class Log {
|
|
private static ManualLogSource? logSource;
|
|
|
|
internal static void Init(ManualLogSource logSource) {
|
|
Log.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);
|
|
} |