码迷,mamicode.com
首页 > 其他好文 > 详细

How To Write In Sharepoint Log File 怎么对自定义的MOSS代码写日志

时间:2014-11-04 17:15:50      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:io   ar   os   sp   strong   on   log   代码   bs   

How To Write In Sharepoint Log File 怎么对自定义的MOSS代码写日志

 

Add Microsoft.Office.Server dll in your project, you can find this dll under “\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\”.

The log files are found under \Common Files\Microsoft Shared\Web Server Extensions\12\Log\Following line of code is used to write exception in sharepoint default log file.

 

Microsoft.Office.Server.Diagnostic.PortalLog.LogString("Exception - {0} - {1} - {2}","User Friendly Message",ex.Message,ex.StackTrace);

How To Write In Sharepoint Log File 怎么对自定义的MOSS代码写日志

标签:io   ar   os   sp   strong   on   log   代码   bs   

原文地址:http://www.cnblogs.com/sunjunlin/p/4073896.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!