Using Trace()

You can write your own information with the trace() function, using the following syntax:

trace(msg : String, params : Object...)

To use the trace() command, you must first specify the variable and then show it in a window, as shown here:

var res = googlesvc.doGoogleSearch(
trace( res );

This writes to the ScriptLog output.