Is there any way for logging the exceptions into ULS logs on sharepoint 2013 on-premise version? And it should be done using csom only.
2 Answers
SPDiagnosticsServiceBase is not available via CSOM.
-
Is there any other way to log(whether to sql table or list) those exceptions using CSOM?– ArunApr 25, 2016 at 15:19
-
If you manually log any encountered errors to a SharePoint List, you could use CSOM to enumerate that list.– user6024Apr 25, 2016 at 15:21
-
Sorry to troubling you, As I'm new to SharePoint, can you pls explain how to log manually into list on SharePoint Online?– ArunApr 25, 2016 at 15:24
Have a look here:
http://tech.bool.se/log-to-uls-using-javascript/
Although it appears to using SOAP, which I'm personally not fan of.
-
Thanks for your update.. Is there anyother way to achieve this using CSOM(not javascript)?– ArunApr 27, 2016 at 18:08