public void Log(Stormancer.Diagnostics.LogLevel logLevel, string category, string message, object context = null) { var temp = new StormancerEditorLog(); temp.logLevel = logLevel.ToString(); temp.message = message; _clientVM.log.log.Enqueue(temp); foreach (StormancerSceneViewModel s in _clientVM.scenes.Values) { if (category == s.scene.Id) { s.log.log.Enqueue(temp); } } _innerLogger.Log(logLevel, category, message, context); }
public void Log(Stormancer.Diagnostics.LogLevel logLevel, string category, string message, object context = null) { MainThread.Post(() => { switch (logLevel) { case Diagnostics.LogLevel.Fatal: case Diagnostics.LogLevel.Error: UnityEngine.Debug.LogError(logLevel.ToString() + ": " + category + ": " + message); break; case Diagnostics.LogLevel.Warn: UnityEngine.Debug.LogWarning(logLevel.ToString() + ": " + category + ": " + message); break; default: UnityEngine.Debug.Log(logLevel.ToString() + ": " + category + ": " + message); break; } }); }
public void Log(Stormancer.Diagnostics.LogLevel logLevel, string category, string message, object context = null) { }
public void Log(Stormancer.Diagnostics.LogLevel logLevel, string category, string message, object context = null) { UnityEngine.Debug.Log(logLevel.ToString() + ": " + category + ": " + message); }