public static void LogError(LogComponents component, params string[] text) { if (IsDebugMode && Enabled && (component & EnabledComponents) != 0) { Debug.LogError(FormatString(text)); } DoLog(FormatString(text), component.ToString()); }
public static void LogException(LogComponents component, Exception exception) { if (IsDebugMode && ((component & EnabledComponents) != 0 || (LogComponents.Exceptions & EnabledComponents) != 0)) { Debug.LogException(exception); } DoLog(FormatString(exception.ToString()), component.ToString()); }
public static void Log(LogComponents component, params string[] text) { if (IsDebugMode && Enabled && (component & EnabledComponents) != 0) { #if UNITY_EDITOR || DEBUG Debug.Log(FormatString(text)); #else #endif } DoLog(FormatString(text), component.ToString()); }