Esempio n. 1
0
        public override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            var stopwatch = (Stopwatch)filterContext.HttpContext.Items[VariableName.StopwatchKey];

            stopwatch.Stop();

            var treeId = HttpContextHelper.GetContextKey();
            var msg    = string.Format("[{0}]:耗时[{1}]毫秒 ", treeId
                                       , stopwatch.ElapsedMilliseconds);

            _log.Debug(msg);
        }