|
We put it in the database
/// add log into database
/// <seealso cref = "CDASystemLog.InsertSystemLog" />
/// </ summary>
/// <param name = "logType"> Log type </ param>
/// <param name = "logDescription"> Log description information </ param>
/// <remarks> Call the InsertSystemLog function in CDASystemLog to insert a system operation log into the database </ 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
{
}
}
} |
|