Enabling Logging for HTTP Authentication
To enable logging for the HTTP authentication, enter the following in the Terminal:
set $namespace="%SYS"
kill ^ISCLOG
set ^%ISCLOG=2
set ^%ISCLOG("Category","HttpRequest")=5
Log entries are written to the ^ISCLOG global. To write the log to a file (for easier readability), enter the following (still within the %SYS namespace):
do ##class(%OAuth2.Utils).DisplayLog("filename")
Where filename is the name of the file to create. The directory must already exist. If the file already exists, it is overwritten.
To stop logging, enter the following (still within the %SYS namespace):
set ^%ISCLOG=0
set ^%ISCLOG("Category","HttpRequest")=0