public void Error(Exception ex)
            {
                var temp = new StormancerEditorLog();

                temp.logLevel = "Error";
                temp.message  = ex.Message;
                _clientVM.log.log.Enqueue(temp);
                _innerLogger.Error(ex);
            }
            public void Info(string message, params object[] p)
            {
                var temp = new StormancerEditorLog();

                temp.logLevel = "Info";
                try
                {
                    temp.message = string.Format(message, p);
                }
                catch (Exception ex)
                {
                    Error(ex);
                }
                _clientVM.log.log.Enqueue(temp);
                _innerLogger.Info(message, p);
            }
            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 Info(string message, params object[] p)
            {
                var temp = new StormancerEditorLog();
                temp.logLevel = "Info";
                try
                {
                    temp.message = string.Format(message, p);
                }
                catch (Exception ex)
                {
                    Error(ex);
                }
                _clientVM.log.log.Enqueue(temp);
                _innerLogger.Info(message, p);

            }
            public void Error(Exception ex)
            {
                var temp = new StormancerEditorLog();
                temp.logLevel = "Error";
                temp.message = ex.Message;
                _clientVM.log.log.Enqueue(temp);
                _innerLogger.Error(ex);

            }
 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);
 }