有沒有辦法從wss或苔蘚中的服務器場中的所有服務器獲取ULS日誌。我需要使用C#以編程方式獲取日誌。我可以從服務器場中的一臺服務器獲取日誌,但我需要所有這些日誌。任何幫助讚賞。ULS登錄sharepoint 2007
3
A
回答
4
您可以使用ULS查看:http://ulsviewer.codeplex.com/
或者您可以使用從評論SPDiagnosticsService
http://msdn.microsoft.com/en-us/library/gg512103.aspx
編輯寫自己的日誌服務:
直接讀取文件,你可以做:
try
{
// Create an instance of StreamReader to read from a file.
// The using statement also closes the StreamReader.
using (StreamReader sr = new StreamReader("FilePath:\\SharePointlogfile.uls"))
{
string line;
// Read and display lines from the file until the end of
// the file is reached.
while ((line = sr.ReadLine()) != null)
{
Console.WriteLine(line);
}
}
}
catch (Exception e)
{
// Let the user know what went wrong.
Console.WriteLine("The file could not be read:");
Console.WriteLine(e.Message);
}
http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx
相關問題
- 1. 編程登錄到SharePoint ULS
- 2. SharePoint 2007中:單點登錄異常
- 3. sharepoint 2007登錄/註銷統計
- 4. Sharepoint 2013 - 無ULS日誌
- 5. SHAREPOINT 2007 - 記錄只讀
- 6. InfoPath 2007&Sharepoint 2007
- 7. Sharepoint登錄
- 8. 是否有登錄嘗試sharepoint 2007的日誌?
- 9. jquery SPGetCurrentUser()獲取sharepoint 2007中當前登錄的用戶名
- 10. 在Sharepoint 2007中顯示彈出窗體登錄
- 11. SharePoint 2013:無法找到ULS .log或.log目錄
- 12. 從ASP.NET網站登錄Sharepoint
- 13. 關於Sharepoint登錄
- 14. 的Sharepoint desinger 2007與SharePoint 2007 serverssss
- 15. Sharepoint的用戶名/密碼登錄
- 16. 我得到的SharePoint ULS日誌的異常,當模擬在SharePoint
- 17. SharePoint 2007 Versions.aspx
- 18. SharePoint Designer 2007中
- 19. SharePoint 2007的core.css
- 20. SharePoint 2007/2010
- 21. SharePoint 2007:Calulated Column
- 22. Moving Sharepoint 3.0 2007
- 23. jQuery與Sharepoint 2007
- 24. Webpart-sharepoint 2007
- 25. Sharepoint的默認登錄域
- 26. SharePoint中心管理登錄
- 27. 從SharePoint登錄到TextFile
- 28. Sharepoint 2010本地 - 登錄
- 29. iOS Sharepoint App登錄錯誤
- 30. SharePoint集成單點登錄
http://social.technet.microsoft.com/Forums/en-US/sharepointdevelopment/thread/1acfe853-5da7-4a4e-9097-d99b6dfd3b79我讀過這篇文章,但它也沒有爲我工作。任何想法 – Alexandr