GetLogFormat() static private méthode

static private GetLogFormat ( string str ) : string
str string
Résultat string
Exemple #1
0
 public static void Log(string str)
 {
     str = Debugger.GetLogFormat(str);
     if (Debugger.useLog)
     {
         Debug.Log(str);
         return;
     }
     if (Debugger.logger != null)
     {
         Debugger.logger.Log(str, string.Empty, LogType.Log);
     }
 }
Exemple #2
0
 public static void LogWarning(string str)
 {
     str = Debugger.GetLogFormat(str);
     if (Debugger.useLog)
     {
         Debug.LogWarning(str);
         return;
     }
     if (Debugger.logger != null)
     {
         string stack = StackTraceUtility.ExtractStackTrace();
         Debugger.logger.Log(str, stack, LogType.Warning);
     }
 }
Exemple #3
0
 public static void LogException(string str, Exception e)
 {
     Debugger.threadStack = e.StackTrace;
     str = Debugger.GetLogFormat(str + e.Message);
     if (Debugger.useLog)
     {
         Debug.LogError(str);
         return;
     }
     if (Debugger.logger != null)
     {
         Debugger.logger.Log(str, Debugger.threadStack, LogType.Exception);
     }
 }