How to view logging from a scoped application created in Studio

Joseph-Warner 7
Tera Expert

I created an app (Lawyer app) within Studio. How do I view logging data from scripts run within the app?

 

I have created a business rule on insert and created some records but cannot see anything in the syslog. I repeated this creating a Fix Script and still see no logging data.

 

 

(function executeRule(current, previous /*null when async*/) {

gs.debug('Lawyers litigate legally.');
gs.info('Lawyers litigate legally.');
gs.warn('Lawyers litigate legally.');
gs.error('Lawyers litigate legally.');

})(current, previous);

 

 

In addition, I created system properties for the application with suffixes logging.destination & logging.verbosity and I still see no logging data.

 

This is within a scoped application created from the Studio interface.

This is within a Vancouver PDI.

 

See attached images for details.

 

App id: x_651544_lawyer_ap

table id: x_651544_lawyer_ap_lawyer   (extends task)

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

I've seen conflicting information as some are saying the type of system property for these should be "string", but then a support article saying "choice", so I would try with both?

For your business rule, having "query" also checked, may be causing an issue and so I'd recommend unchecking that.

Then, just make sure your business rule, etc. is triggering appropriately to see your logging.


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

Additionally, if your system properties weren't set to "clear cache" and instead were ignore cache, you may need to logout and log back in and see if that works. Otherwise, clear your instance cache by typing cache.do and pressing enter in left-hand navigation.


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