Esempio n. 1
0
        private async void SaveBtn_Clicked(object sender, EventArgs e)
        {
            LogContentModel log = base.BindingContext as LogContentModel;

            App.Logger.Debug(log.LogContent);

            await Navigation.PopAsync();
        }
Esempio n. 2
0
        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));
        }