在SharePoint Online中的事件接收器上将日志写入文本文件中 [英] Write logs in text file on Event Receiver in SharePoint Online

查看:81
本文介绍了在SharePoint Online中的事件接收器上将日志写入文本文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我已成功在SharePoint Online中创建了远程事件接收器。我想在文本文件中编写自定义值和例外日志。我已在Azure中部署了所有必需和自定义dll。建议我在RER中写一个文本文件。



问候


Poomani Sankaran

解决方案


您的RER在哪里运行?您只能将内容写入运行RER的服务器。


您只需使用StreamWriter类来编写您想要的信息,或者您可以使用log4net,这一切都取决于您。


Hi All,

I have created Remote Event Receiver in SharePoint Online successfully. I would like to write custom values and exceptions log in text file. I have deployed all the required and custom dlls in Azure. Please suggest me to write a text file in RER.

Regards

Poomani Sankaran

解决方案

Hey

Where is your RER run? You can only write content to the server running RER.

You can simply use StreamWriter class to write information you want or you can use log4net, it all depends on you.


这篇关于在SharePoint Online中的事件接收器上将日志写入文本文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆