Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 private static string GetLogTag(IDebugLogTag obj)
 {
     return(obj.LogTag);
 }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
 public static void LogError(this IDebugLogTag obj, string message, LogColor logColor = LogColor.Red)
 {
     message = GetLogText(GetLogTag(obj), GetLogCaller(), message);
     Internal_LogError(Prefix + message, logColor);
 }
Exemplo n.º 8
0
        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);
        }