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; }
public MainWindow() { InitializeComponent(); Title = Properties.Resources.General_WindowTitle; // Init logging LogConfiguration.ConfigureSeriLog(); }
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; }