Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Salesforce Certified B2C Commerce Developer Comm-Dev-101 Question # 14 Topic 2 Discussion

Salesforce Certified B2C Commerce Developer Comm-Dev-101 Question # 14 Topic 2 Discussion

Comm-Dev-101 Exam Topic 2 Question 14 Discussion:
Question #: 14
Topic #: 2

The developer needs to add custom category debug logging into the " contact " script, to ensure that a third-party service call responds as expected.

Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?

01varLogger=require( ' dw/system/Logger ' );

02varservice=dw.svc.LocalServiceRegistry.createService( ' contact.http.submit ' ,options);

03varserviceResponse=service.call(requestJSON);

04

05if(serviceResponse.ok) {

06// Insert logging code here

07}


A.

Logger.getLogger( ' contact ' ).debug( ' Contact service responded with OK. ' )


B.

Logger.debug( ' Contact service responded with OK. ' )


C.

Logger.customLogger( ' contact ' ).debug( ' Contact service responded with OK. ' )


Get Premium Comm-Dev-101 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.