public static void LogError(this IDebugLogTag obj, string message, LogColor logColor = LogColor.Red) { if (!EnableLogError) { return; } StringBuffer.Length = 0; StringBuffer.Append(Prefix).Append(GetLogTag(obj)).Append(LogStringType1).Append(GetLogCaller()).Append(LogStringType2).Append(message); Internal_LogError(StringBuffer, logColor); }
public static void LogError(this IDebugLogTag obj, string format, params object[] args) { if (!EnableLogError) { return; } StringBuffer.Length = 0; StringBuffer.Append(Prefix).Append(GetLogTag(obj)).Append(LogStringType1).Append(GetLogCaller()).Append(LogStringType2).AppendFormat(format, args); Internal_LogError(StringBuffer); }
public static void Log(this IDebugLogTag obj, string message = "", LogColor logColor = LogColor.White) { if (!EnableLog) { return; } message = GetLogText(GetLogTag(obj), GetLogCaller(), message); Internal_Log(Prefix + message, logColor); }
public static void Log(this IDebugLogTag obj, string format, params object[] args) { if (!EnableLog) { return; } string message = GetLogText(GetLogTag(obj), GetLogCaller(), string.Format(format, args)); Internal_Log(Prefix + message); }
private static string GetLogTag(IDebugLogTag obj) { return(obj.LogTag); }
public static void LogError(this IDebugLogTag obj, string format, params object[] args) { string message = GetLogText(GetLogTag(obj), GetLogCaller(), string.Format(format, args)); Internal_LogError(Prefix + message); }
public static void LogError(this IDebugLogTag obj, string message, LogColor logColor = LogColor.Red) { message = GetLogText(GetLogTag(obj), GetLogCaller(), message); Internal_LogError(Prefix + message, logColor); }
public static void LogWarning(this IDebugLogTag obj, string format, LogColor logColor, params object[] args) { string message = GetLogText(GetLogTag(obj), GetLogCaller(), string.Format(format, args)); Internal_LogWarning(Prefix + message, logColor); }