Where do i need to check the Mid server logs?

revathy
Kilo Expert

Hi,

I am passing value from script include to "Mid server" script include.I need to check whether the passed in value has been received correctly.I used "This.log" in the mid server script include where do i go to check this.

 

logged script:
this.retry_Interval = probe.getParameter("retry_Interval"); //To get interval value of 20s
this.log('testMid retry_Interval : '+this.retry_Interval);

 

Thanks,
Revathy

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Revathy,

this.log won't work. For adding logs to mid server use ms.log();

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Perhaps this may assist you?

https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/product/mid-server/task/t_Acces...


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Revathy,

this.log won't work. For adding logs to mid server use ms.log();

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks,

i have another question too..

 

I am passing an integer value to the mid server script include.when i tried to check on then logs i can see the value as null.

Script include:

var jp = new JavascriptProbe(request[1]);
jp.setName("FileBuilderFileCopy");
jp.setJavascript("var req = new FileBuilderFileCopy();");
jp.addParameter("retry_Interval", 20); 
jp.create();

Mid server script include:

this.retry_Interval = probe.getParameter("retry_Interval"); //To get interval value of 20
ms.log('testMid retry_Interval : '+this.retry_Interval);

 

log:


testMid retry_Interval : null