Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1003 Bytes

File metadata and controls

36 lines (25 loc) · 1003 Bytes

Logger Examples

The Logger library is a simple tool for logging information during script execution. It helps debug scripts by recording messages, data, or errors.

Examples

  1. Log a Simple Message:
    Output a basic message to the Apps Script log.

  2. Log Variables:
    Record variable values during execution.

  3. Log an Array or Object:
    Log arrays or JSON objects for debugging.

  4. Log Errors:
    Record error messages when exceptions occur.

  5. Log Execution Time:
    Measure and log the execution time of a script.

  6. Log Nested Loops:
    Debug loops by logging each iteration.

  7. Clear the Log:
    Clear the log before running a script.

Scripts