private static void Log(ErrorEntity errorEntity) { System.Diagnostics.Debug.WriteLine(errorEntity.ToString()); if (RGHSettings.LogLevel >= errorEntity.ErrorLevel) { LiteDBHelper.Save(errorEntity); } }