Powered By Blogger

Sunday, May 27, 2018

Log errors in Gel Script when XOGGING

OK, so it is important to be able to log while creating Gel Scripts.  This can be a pain because different environments, like Saas (ondemand) might not allow access to certain logging features.

So first problem is to change the XOG from an XML object ot a string as shown in line 3

Then Set the error level to "ERROR" so that even the Saas environment will have to process it.
Saas sets logging off so that the logs do not fill up.  setting it to ERROR will force a log to be thrown

  1.   
  2. <gel:set var="xogbodystr" select="$xogBody" asString="true"/>  
  3. <gel:log category="XOG" level="ERROR">${xogBodystr}</gel:log>  

No comments:

Post a Comment