|
发表于 2020-1-22 09:45:01
|
显示全部楼层
我们是把它存人数据库的
/// add log into database
/// <seealso cref="CDASystemLog.InsertSystemLog"/>
/// </summary>
/// <param name="logType">日志类型</param>
/// <param name="logDescription">日志描述信息</param>
/// <remarks>调用CDASystemLog中的InsertSystemLog函数,向数据库中插入系统操作日志</remarks>
protected void AddSystemLog(string logType,string logDescription)
{
if(CurrentUser!=null)
{
try
{
CDASystemLog dasl=new CDASystemLog ();
dasl.InsertSystemLog(Session.SessionID,CurrentUser.UserID,DateTime.Now,"Topis."+_moduleID,logType,
logDescription,Request.UserHostAddress,
Request.Browser.Platform,Request.Browser.Type +"."+Request.Browser.MinorVersion,
Thread.CurrentThread.CurrentUICulture.Name );
}
catch
{
}
}
} |
|