The Logger
library is a simple tool for logging information during script execution. It helps debug scripts by recording messages, data, or errors.
-
Log a Simple Message:
Output a basic message to the Apps Script log. -
Log Variables:
Record variable values during execution. -
Log an Array or Object:
Log arrays or JSON objects for debugging. -
Log Errors:
Record error messages when exceptions occur. -
Log Execution Time:
Measure and log the execution time of a script. -
Log Nested Loops:
Debug loops by logging each iteration. -
Clear the Log:
Clear the log before running a script.