Beispiel #1
0
        private static void LogFunction(PitayaLogLevel level, string msg)
        {
            switch (level)
            {
            case PitayaLogLevel.Debug:
                Debug.Log("[DEBUG] " + msg);
                break;

            case PitayaLogLevel.Info:
                Debug.Log("[INFO] " + msg);
                break;

            case PitayaLogLevel.Warn:
                Debug.Log("[WARN] " + msg);
                break;

            case PitayaLogLevel.Error:
                Debug.Log("[ERROR] " + msg);
                break;

            case PitayaLogLevel.Disable:
                // Don't do anything
                break;
            }
        }
Beispiel #2
0
 public static void SetLogLevel(PitayaLogLevel level)
 {
     PitayaBinding.SetLogLevel(level);
 }
Beispiel #3
0
 public static void SetLogLevel(PitayaLogLevel logLevel)
 {
     NativeLibSetLogLevel((int)logLevel);
     _currentLogLevel = logLevel;
 }