internal static void ShowGUIDError(string guid) { Logging.LogLevel loglevel = Sideloader.MissingModWarning.Value ? Logging.LogLevel.Warning | Logging.LogLevel.Message : Logging.LogLevel.Warning; if (LoadedResolutionInfo.Any(x => x.GUID == guid)) { //we have the GUID loaded, so the user has an outdated mod Sideloader.Logger.Log(loglevel, $"[UAR] WARNING! Outdated mod detected! [{guid}]"); } #if KK || AI || HS2 else if (LoadedStudioResolutionInfo.Any(x => x.GUID == guid)) { //we have the GUID loaded, so the user has an outdated mod Sideloader.Logger.Log(loglevel, $"[UAR] WARNING! Outdated mod detected! [{guid}]"); } #endif else { //did not find a match, we don't have the mod Sideloader.Logger.Log(loglevel, $"[UAR] WARNING! Missing mod detected! [{guid}]"); } }
public static void Log(BepInEx.Logging.LogLevel level, LogGroups group, string message) { Loggers[group.ToString()].Log(level, message); }
public static void Level(BepInEx.Logging.LogLevel level, object data) => _logSource.Log(level, data);