logGlobal¶
Overview¶
Logs a global variable by converting it to JSON, then writing to phet.log. If the global is undefined, the log will show 'undefined'. This is currently used to log a collection of query parameters (which exist as globals), but could be applied to other globals. If phet.log is undefined, this is a no-op.
@author Chris Malley (PixelZoom, Inc.)
Source Code¶
See the source for logGlobal.ts in the phet-core repository.