Exemplo 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;
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            Title = Properties.Resources.General_WindowTitle;

            // Init logging
            LogConfiguration.ConfigureSeriLog();
        }
Exemplo 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;
        }