Ejemplo n.º 1
0
 public void LogifyCrashReport()
 {
     try
     {
         var         isEnabledReport = AppVariable.ReadBoolSetting(AppVariable.AutoSendReport);
         LogifyAlert client          = LogifyAlert.Instance;
         client.ApiKey                  = AppVariable.LogifyAPIKey;
         client.AppName                 = AppVariable.getAppName;
         client.AppVersion              = AppVariable.getAppVersion;
         client.OfflineReportsEnabled   = true;
         client.OfflineReportsCount     = 20;
         client.OfflineReportsDirectory = AppVariable.LogifyOfflinePath;
         client.SendOfflineReports();
         client.StartExceptionsHandling();
         if (isEnabledReport.Equals("True"))
         {
             client.StartExceptionsHandling();
         }
         else
         {
             client.StopExceptionsHandling();
         }
     }
     catch (Exception)
     {
     }
 }
Ejemplo n.º 2
0
        public static void Run()
        {
            LogifyAlert client = LogifyAlert.Instance;

            // Values set here will override ones specified in the app.config file
            //client.ApiKey = "SPECIFY_YOUR_API_KEY_HERE";
            //client.AppName = "ClassSRM";
            //client.AppVersion = "1.0.0";

            client.CanReportException    += CanReportException;
            client.BeforeReportException += BeforeReportException;

            client.UserId = System.Environment.UserName;

            // Adds custom data to a report
            client.CustomData["MACHINE_NAME"] = System.Environment.MachineName;

            // Uncomment this code to attach a last opened file to a report
            // client.Attachments.Add(new Attachment() {
            // Name = "lastOpenFile.bin",
            // MimeType = "application/octet-stream",
            // Content = GetLastOpenFileBytes()
            //});

            // Keeps OfflineReportsCount crash reports within the specified directory if you're offline
            client.OfflineReportsEnabled   = false;
            client.OfflineReportsDirectory = "OfflineReportsFolder";
            client.OfflineReportsCount     = 10;
            if (client.OfflineReportsEnabled && !Directory.Exists(client.OfflineReportsDirectory))
            {
                Directory.CreateDirectory(client.OfflineReportsDirectory);
            }

            client.StartExceptionsHandling();
        }
Ejemplo n.º 3
0
 static void InitLogifyWinForms()
 {
     try {
         LogifyAlert client = LogifyAlert.Instance;
         ClientConfigurationLoader.ConfigureClientFromFile(client, GetConfigFileName());
         client.StartExceptionsHandling();
     }
     catch (Exception ex) {
         MessageBox.Show(ex.ToString(), "InitLogify exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 4
0
        protected override void OnCreate(Bundle bundle)
        {
            LogifyAlert client = LogifyAlert.Instance;

            client.ApiKey = "71BE7BFE7AA24210AF74932C76B65C9A";
            client.StartExceptionsHandling();

            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App(new AndroidInitializer()));
        }
Ejemplo n.º 5
0
        public Form1()
        {
            InitializeComponent();

            //Get Skin from Config and App Version
            DevExpress.XtraBars.Helpers.SkinHelper.InitSkinGallery(sRGB, true, true);
            sRGB.GalleryItemClick += new DevExpress.XtraBars.Ribbon.GalleryItemClickEventHandler(rgbi_GalleryItemClick);
            if (Config.ReadSetting("Skin") != "0")
            {
                DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(Config.ReadSetting("Skin"));
            }

            this.Text += ProductVersion;

            LogifyAlert client = LogifyAlert.Instance;

            client.ApiKey = "14BE896FCC8C447492CF910AF3192EAD";
            client.OfflineReportsEnabled   = true;
            client.OfflineReportsCount     = 20;
            client.OfflineReportsDirectory = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            client.SendOfflineReports();
            client.StartExceptionsHandling();
        }