Esempio n. 1
0
 public App()
 {
     LogConfiguration.ConfigureSeriLog();
     Log = Serilog.Log.ForContext <App>();
     // For some reason this will not work for exceptions thrown from inside the Views.
     AppDomain.CurrentDomain.UnhandledException += MyHandler;
 }
Esempio n. 2
0
        public MainWindow()
        {
            InitializeComponent();
            Title = Properties.Resources.General_WindowTitle;

            // Init logging
            LogConfiguration.ConfigureSeriLog();
        }
Esempio n. 3
0
        public App()
        {
            try
            {
                ArkadeProcessingArea.Establish(Settings.Default.ArkadeProcessingAreaLocation);
            }
            catch (Exception e)
            {
                Trace.WriteLine("Exception while establishing arkade processing area: " + e.Message);
            }

            LogConfiguration.ConfigureSeriLog();
            _log = Log.ForContext <App>();
            // For some reason this will not work for exceptions thrown from inside the Views.
            AppDomain.CurrentDomain.UnhandledException += MyHandler;
        }