Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Asp.NETMVC中从网站获取完整的自定义日志_Asp.net_Asp.net Mvc_Asp.net Mvc 3_Asp.net Mvc 4 - Fatal编程技术网

在Asp.NETMVC中从网站获取完整的自定义日志

在Asp.NETMVC中从网站获取完整的自定义日志,asp.net,asp.net-mvc,asp.net-mvc-3,asp.net-mvc-4,Asp.net,Asp.net Mvc,Asp.net Mvc 3,Asp.net Mvc 4,我有一个Asp.NETMVC应用程序 我需要得到一个完整的自定义日志我的网站,但我不想使用谷歌分析,IIS日志文件等 我熟悉CustomActionFilter和HttpModule。我应该使用这些还是有更好的方法?您可以使用它们来跟踪用户活动。您可以直接在JavaScript代码中跟踪自己的事件、异常等 appInsights.trackEvent("WinGame"); appInsights.trackEvent ("WinGame", // String properti

我有一个Asp.NETMVC应用程序

我需要得到一个完整的自定义日志我的网站,但我不想使用谷歌分析,IIS日志文件等

我熟悉
CustomActionFilter
HttpModule
。我应该使用这些还是有更好的方法?

您可以使用它们来跟踪用户活动。您可以直接在JavaScript代码中跟踪自己的事件、异常等

appInsights.trackEvent("WinGame");

appInsights.trackEvent
  ("WinGame",
     // String properties:
     {Game: currentGame.name, Difficulty: currentGame.difficulty},
     // Numeric metrics:
     {Score: currentGame.score, Opponents: currentGame.opponentCount}
     );

appInsights.trackPageView
    ("page name", "http://fabrikam.com/pageurl.html",
      // String properties:
     {Game: currentGame.name, Difficulty: currentGame.difficulty},
     // Numeric metrics:
     {Score: currentGame.score, Opponents: currentGame.opponentCount}
     );
您可以使用跟踪用户活动。您可以直接在JavaScript代码中跟踪自己的事件、异常等

appInsights.trackEvent("WinGame");

appInsights.trackEvent
  ("WinGame",
     // String properties:
     {Game: currentGame.name, Difficulty: currentGame.difficulty},
     // Numeric metrics:
     {Score: currentGame.score, Opponents: currentGame.opponentCount}
     );

appInsights.trackPageView
    ("page name", "http://fabrikam.com/pageurl.html",
      // String properties:
     {Game: currentGame.name, Difficulty: currentGame.difficulty},
     // Numeric metrics:
     {Score: currentGame.score, Opponents: currentGame.opponentCount}
     );

您需要用户活动日志吗?还是申请工作的日志?这是两个不同的日志。我需要用户活动日志。我需要得到我的网站统计申请日志。(总页面浏览量、总访客等)谷歌分析是最好的。因为它有很多额外的信息,比如用户从哪里来到你的网站等。我不能使用谷歌分析。我需要自定义日志。您需要用户活动日志吗?还是申请工作的日志?这是两个不同的日志。我需要用户活动日志。我需要得到我的网站统计申请日志。(总页面浏览量、总访客等)谷歌分析是最好的。因为它有很多额外的信息,比如用户从哪里来到你的网站等。我不能使用谷歌分析。我需要定制日志。