private async void SaveBtn_Clicked(object sender, EventArgs e) { LogContentModel log = base.BindingContext as LogContentModel; App.Logger.Debug(log.LogContent); await Navigation.PopAsync(); }
public ActionResult GetContent(string fileName, bool noInfo) { logger.InfoFormat("GetContent {0} ({1})", fileName, noInfo); var fullname = Path.Combine(Server.MapPath(@"~\logs"), fileName); var model = new LogContentModel { log = _logHelper.processLog(fullname, noInfo) }; return(PartialView("LogContent", model)); }