






















Logging Provider 存在于 DotNetNuke.Services.Log.EventLog 名称空间下,其中,EventLogController和ExceptionLogController是我们经常用到的两个类,下面是主要的EventLog类型:
开发者使用EventLogController.AddLog ()方法来记录日志,它有六种重载,最常用的两个如下:
1、
Public Overloads Sub AddLog(ByVal objCBO As Object, ByVal _PortalSettings As PortalSettings, ByVal UserID As Integer, ByVal UserName As String, ByVal objLogType As Services.Log.EventLog.EventLogController.EventLogType)
Public Overloads Sub AddLog(ByVal PropertyName As String, ByVal PropertyValue As String, ByVal _PortalSettings As PortalSettings, ByVal UserID As Integer, ByVal objLogType As Services.Log.EventLog.EventLogController.EventLogType)
ExceptionLogController的主要ExceptionLog类型有:
此AddLog方法有三个重载
以上信息取自《Professional DotNetNuke Asp.NET Portals 》
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。