示例#1
0
        public ActionResult ExceptionsSimilar(string app, Guid id, ExceptionSorts?sort = null, bool truncate = true, bool byTime = false)
        {
            // Defaults
            sort = sort ?? ExceptionSorts.TimeDesc;

            var e = ExceptionStores.GetError(app, id);

            if (e == null)
            {
                return(View("Exceptions.Detail", null));
            }

            var errors = ExceptionStores.GetSimilarErrors(e, byTime, sort: sort.Value);
            var vd     = new ExceptionsModel
            {
                Sort                    = sort.Value,
                Exception               = e,
                SelectedLog             = app,
                ShowingWindow           = byTime,
                Applications            = ExceptionStores.Applications,
                ClearLinkForVisibleOnly = true,
                Errors                  = errors
            };

            return(View("Exceptions.Similar", vd));
        }
示例#2
0
        public ActionResult ExceptionsSimilar(string app, Guid id, bool truncate = true, bool byTime = false)
        {
            var e = ExceptionStores.GetError(app, id);

            if (e == null)
            {
                return(View("Exceptions.Detail", null));
            }

            var errors = ExceptionStores.GetSimilarErrors(e, byTime);
            var vd     = new ExceptionsModel
            {
                Exception      = e,
                SelectedLog    = app,
                TruncateErrors = truncate,
                ShowingWindow  = byTime,
                Applications   = ExceptionStores.Applications,
                Errors         = errors
            };

            return(View("Exceptions.Similar", vd));
        }