You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
796 B
23 lines
796 B
|
|
using NLog;
|
|
using System;
|
|
using System.Text;
|
|
using System.Web;
|
|
|
|
namespace FangYar.Common
|
|
{
|
|
public partial class logger
|
|
{
|
|
Logger logger_ = LogManager.GetCurrentClassLogger();
|
|
public void Info(string info)
|
|
{
|
|
if (HttpContext.Current.Request.Cookies["kn_root_UserID"] != null)
|
|
{
|
|
string users_uid = HttpContext.Current.Request.Cookies["kn_root_UserID"].Value.ToString();
|
|
string cip= HttpContext.Current.Request.Cookies["cip"].Value.ToString();
|
|
string cname = System.Web.HttpUtility.UrlDecode(HttpContext.Current.Request.Cookies["cname"].Value.ToString(), Encoding.GetEncoding("utf-8"));
|
|
logger_.Info(users_uid + ":"+cip +"-"+ cname +"-"+ info);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|