Activating and checking the SOAP Log
I'd like to access and view the soap log. Apparently there is a global for that (^ISCSOAP) (http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY…), but insofar I have been unsuccessful finding the exact cache command for viewing the soap log or changing it so that it logs both incoming and outgoing traffic. Can anyone enlighten me?
I.e. I am trying stuff like:
set ^ISCSOAP("Log") = io
write ^ISCSOAP("Log)
but those don't work.
Comments
Hi Tom,
please look at the documentation link you've found in more detail.
You need to specify logfile as well. Log will not be written in global, it will be written in file, for example:
>Set
The SOAP-Log needs to be set per namespace, so it will be only active for that namespace.
Please also don't forget to disable SOAP-Log when you're done with you testings/debuggings. ( >K ^ISCSOAP )
HTH,
Bernd
...and don't forget to kill the global when you're done. On a busy system, the log file could grow very large.
Otto
Hello,
The "set ^ISCSOAP("Log") = io" is to configure the global.
I normally use this one:
set ^ISCSOAP("LogFile") = "path/logs/name_log.txt"
Is the way to read it. Write it in a file and then go to that paht and read it.
I hope it helps you.
Okay, I got it working. Thankx!
I usually set set ^ISCSOAP("LogFile") = "path/logs/SOAP_"_$ZDate($Horolog,3)_".txt"
so that it is easier to purge "old" logs.