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; } }
public static void SetLogLevel(PitayaLogLevel level) { PitayaBinding.SetLogLevel(level); }
public static void SetLogLevel(PitayaLogLevel logLevel) { NativeLibSetLogLevel((int)logLevel); _currentLogLevel = logLevel; }