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 2


SPDiagnosticsServiceBase is not available via CSOM.

  • Is there any other way to log(whether to sql table or list) those exceptions using CSOM?
    – Arun
    Commented Apr 25, 2016 at 15:19
  • If you manually log any encountered errors to a SharePoint List, you could use CSOM to enumerate that list.
    – user6024
    Commented Apr 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?
    – Arun
    Commented Apr 25, 2016 at 15:24

Have a look here:


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)?
    – Arun
    Commented Apr 27, 2016 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.