using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Xamarin.Essentials; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace comal.timesheets { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class LogViewer { public LogViewer() { InitializeComponent(); } protected override void OnAppearing() { base.OnAppearing(); Log.Text = InABox.Mobile.MobileLogging.ReadLog(); } private async void Email_OnClicked(object sender, EventArgs e) { var message = new EmailMessage { Subject = $@"PRS Mobile LogFiles", Body = InABox.Mobile.MobileLogging.ReadLog(), To = new List { "support@prsdigital.com.au" } }; await Email.ComposeAsync(message); } } }