Written by

Question Gautam Rishi · Jun 8, 2023

how can we track logs of our rest api that we create in web applications.

how can we track logs of our rest api that we create in web applications. As i am running it on local system.

Comments

Javier Lorenzo Mesa · Jun 14, 2023

Hi, you can use the $$$LOGINFO and/or  $$$TRACE macross and then review it using the Event Log in the Management Portal. You can type the class name of your REST API to filter the results.

Best regards,

Javi

0
Eduard Lebedyuk · Jun 15, 2023

Use Session Events or create your custom base REST class extending %CSP.REST with logging in OnPreDispatch method. Check Custom Logging section in this article, for an example of %request logging.

0