diff --git a/example/uwp/app/MainPage.xaml.cs b/example/uwp/app/MainPage.xaml.cs index 9bdf5070e..ee0c6a3d7 100644 --- a/example/uwp/app/MainPage.xaml.cs +++ b/example/uwp/app/MainPage.xaml.cs @@ -27,11 +27,13 @@ namespace TdApp Items = new System.Collections.ObjectModel.ObservableCollection(); _handler = new MyClientResultHandler(this); + Td.Log.SetFilePath(Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "log")); + Td.Log.SetVerbosityLevel(20); + System.Threading.Tasks.Task.Run(() => { try { - Td.Log.SetFilePath(Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "log")); _client = Td.Client.Create(_handler); var parameters = new TdApi.TdlibParameters(); parameters.DatabaseDirectory = Windows.Storage.ApplicationData.Current.LocalFolder.Path;