---
title: "Logger Drop-in Replacement for V8 Runtime"
author: "Brian Bennett"
date: 2020-02-20T10:35:11+00:00
modified: 2020-03-02T20:06:41+00:00
canonical_url: https://pulse.appsscript.info/p/2020/02/logger-drop-in-replacement-for-v8-runtime/
markdown_url: https://pulse.appsscript.info/p/2020/02/logger-drop-in-replacement-for-v8-runtime.md
categories:
  - "Snippet"
  - "Solutions"
  - "V8"
tags:
  - "@clssrmtechtools"
description: "Why not make it a proper library? Because to make it a drop-in replacement, needs to have access to global scope, which a library doesn't. The V8 runtime changes how the Logger class works, which..."
---

# Logger Drop-in Replacement for V8 Runtime

> Why not make it a proper library? Because to make it a drop-in replacement, needs to have access to global scope, which a library doesn’t.

The V8 runtime changes how the `Logger` class works, which has shown much slower load times for simple Logging statements. This snippet writes all `Logger.log` calls to a spreadsheet when invoked, greatly speeding up development time.

https://twitter.com/clssrmtechtools/status/1230042951096532992

Source: *[classroomtechtools/modularLibrariesV8*](https://github.com/classroomtechtools/modularLibrariesV8/blob/master/Logger/Logger.js)

---

*Published by [Brian Bennett](https://pulse.appsscript.info/p/author/brianbennett/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2020/02/logger-drop-in-replacement-for-v8-runtime/](https://pulse.appsscript.info/p/2020/02/logger-drop-in-replacement-for-v8-runtime/)*
