Пример #1
0
 public static void LogInfo(object message, string tag)
 {
     if ((Level == LogLevel.Verbose || Level == LogLevel.Info) && SwrveLog.OnLog != null)
     {
         SwrveLog.OnLog(LogLevel.Info, message, tag);
     }
 }
Пример #2
0
 public static void LogError(object message, string tag)
 {
     if ((Level == LogLevel.Verbose || Level == LogLevel.Info || Level == LogLevel.Warning || Level == LogLevel.Error) && SwrveLog.OnLog != null)
     {
         SwrveLog.OnLog(LogLevel.Error, message, tag);
     }
 }
Пример #3
0
 public static void Log(object message, string tag)
 {
     if (Level == LogLevel.Verbose && SwrveLog.OnLog != null)
     {
         SwrveLog.OnLog(LogLevel.Verbose, message, tag);
     }
 }
Пример #4
0
 public static void LogError(object message, string tag)
 {
     if (SwrveLog.Level == SwrveLog.LogLevel.Verbose || SwrveLog.Level == SwrveLog.LogLevel.Info || SwrveLog.Level == SwrveLog.LogLevel.Warning || SwrveLog.Level == SwrveLog.LogLevel.Error)
     {
         Debug.LogError(message);
         if (SwrveLog.OnLog != null)
         {
             SwrveLog.OnLog(SwrveLog.LogLevel.Error, message, tag);
         }
     }
 }
Пример #5
0
 public static void LogInfo(object message, string tag)
 {
     if (SwrveLog.Level == SwrveLog.LogLevel.Verbose || SwrveLog.Level == SwrveLog.LogLevel.Info)
     {
         Debug.Log(message);
         if (SwrveLog.OnLog != null)
         {
             SwrveLog.OnLog(SwrveLog.LogLevel.Info, message, tag);
         }
     }
 }