Happy Business Starts Here

Please tell me about log output method when executing API to Zuora.

Valued Scholar

Please tell me about log output method when executing API to Zuora.

In addition to Zuora.zApi, there is currentLogger in zqu.zQuoteUtil that you are using for Quote sending.
Is there a way to issue xml log to zqu.zQuoteUtil?


Please teach the mounting method if there is any.
The following is the description of the assumption.
 System.debug (zqu.zQuoteUtil.currentLogger.toString ());
However, it got nullPointerException when executed.

 

1 REPLY 1
Guru

Re: Please tell me about log output method when executing API to Zuora.

I use a utility method to make the log statement so I do not get NRE.

 

	public static void logCurrentCallout(String sourceDescription){
		if (Zuora.zApi.currentLogger == null || Test.isRunningTest()){
			return;
		}
		System.debug('### Log of Current Zuora Callout from ' + sourceDescription + '|| ' + Zuora.zApi.currentLogger.toString());
	}
Maggie Longshore