惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - andrewma

等待宝宝降生 自制胎教音乐---太阳当头照 什么是“对你好”? ADP项目:控制子窗体中的Check控件 URL Rewrite - andrewma - 博客园 MS印象-----北京.Net俱乐部8.13活动 DotNetNuke Architecture 一位CIO的观点 偷听讲课被逐 一次关于亲子教育和少儿心理教育的讲座 MS员工需要跟老板核实的两个问题 一点责任 拓展训练 家规 - andrewma 关于霍金 从丁俊晖夺冠所想到的 "家"和"教育" 修改ONET.XML自定义SPS站点 default.aspx页面中的SPS控件
Dnn's Event Logging API
andrewma · 2005-08-09 · via 博客园 - andrewma

Logging Provider 存在于 DotNetNuke.Services.Log.EventLog 名称空间下,其中,EventLogControllerExceptionLogController是我们经常用到的两个类,下面是主要的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)


此方法主要记录自定义业务对象的属性名称及值
2、

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 》

posted on 2005-08-09 10:31  andrewma  阅读(1113)  评论()    收藏  举报