public App() { // SfdcSDK InitializeSfdcConfig(); SDKManager.CreateClientManager(false); SDKManager.RootApplicationPage = typeof(VisualBrowserPage); SDKManager.EndLoginCallBack = () => { Messenger.Default.Send(new UserLogInMessage()); }; PlatformAdapter.Resolve <ISFApplicationHelper>().Initialize(); // Set up the Logging Service and the custom log action function in the PlatformAdapter var target = new LogFileTarget(); target.RetainDays = 10; LoggingServices.DefaultConfiguration.AddTarget(LoggingLevel.Information, target); PlatformAdapter.SetCustomLoggerAction(LoggingServices.LogAction); // Continue App setup InitializeComponent(); Suspending += OnSuspending; Resuming += OnResuming; // Setup the global crash handler GlobalCrashHandler.Configure(); }