在Asp.NETMVC中从网站获取完整的自定义日志
我有一个Asp.NETMVC应用程序 我需要得到一个完整的自定义日志我的网站,但我不想使用谷歌分析,IIS日志文件等 我熟悉在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
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}
);
您需要用户活动日志吗?还是申请工作的日志?这是两个不同的日志。我需要用户活动日志。我需要得到我的网站统计申请日志。(总页面浏览量、总访客等)谷歌分析是最好的。因为它有很多额外的信息,比如用户从哪里来到你的网站等。我不能使用谷歌分析。我需要自定义日志。您需要用户活动日志吗?还是申请工作的日志?这是两个不同的日志。我需要用户活动日志。我需要得到我的网站统计申请日志。(总页面浏览量、总访客等)谷歌分析是最好的。因为它有很多额外的信息,比如用户从哪里来到你的网站等。我不能使用谷歌分析。我需要定制日志。