public async Task <ActionResult> Entries(Component component = Component.All, LogLevel logLevel = LogLevel.Debug, int numberOfEntries = 0) { try { await Tracer.Info("Refreshing log entries"); var proxy = new AdministrationServiceClient(AuthenticationHelper.GetSessionId()); return(this.PartialView(proxy.GetLogMessages(new LogListener { Component = component, LogLevel = logLevel, NumberOfMessages = numberOfEntries }))); } catch (Exception ex) { this.HandleException("Error while retrieving log entries", ex); } return(new HttpStatusCodeResult(HttpStatusCode.InternalServerError)); }