62,025
社区成员
发帖
与我相关
我的任务
分享
public void Init(HttpApplication context)
{
string requestPath = context.Context.Request.Path.ToLower();
string userIP = GetIP();
FileInfo TmpFileInfo = new FileInfo(HttpContext.Current.Server.MapPath("~/log.txt"));
StreamWriter LogSW = TmpFileInfo.AppendText();
LogSW.WriteLine(userIP + " " + requestPath);
LogSW.Close();
LogSW.Dispose();
}