コード例 #1
0
        public void Log <TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception,
                                 Func <TState, Exception, string> formatter)
        {
            if (!IsEnabled(logLevel))
            {
                return;
            }

            GAApi.TrackEvent(logLevel.ToString(), _name, $"{formatter(state, exception)}");
        }
コード例 #2
0
 public override void OnActionExecuted(ActionExecutedContext filterContext)
 {
     GAApi.TrackPageview(filterContext.HttpContext.Request.Path + filterContext.HttpContext.Request.QueryString);
 }