Client Side Code logging ….

basantsoni
Kilo Guru

Hi Friends,

In Service Now, Do we have anything to checking logging of client scripts like Business Rules, UI/Data Policies? By logging technique we'll get to know which client scripts (java script) code is working or running by actions or events.

Regards,

Basant

6 REPLIES 6

Shishir Srivast
Mega Sage

Hello Basant,



JavaScript that runs on the browser, such as client scripts, can include a call to jslog() to send information to the JavaScript Log. You may find this helpful.



Using Chrome to Debug Client Side Errors


JavaScript log


Aakash Shah4
Tera Guru

Hi Basant,



You could use the alert function



Refer this link for more details




Scripting Alert, Info, and Error Messages - ServiceNow Wiki


basantsoni
Kilo Guru

Thanks Friends for your reply.


I was looking if we have some external/third party or snow internal utilities to check/analyse line by line client scripts that has been executed when a transaction had happen. like incident creation/update. in these kind of operation how many client scripts had triggered and what java script had complied/run.


Hi Basant,



You could use the Debug functionality which is available with ServiceNow.



find_real_file.png