Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get logs when the script is a standalone library executed from a spreadsheet? #219

Closed
maximelebreton opened this issue Jun 15, 2018 · 3 comments

Comments

@maximelebreton
Copy link

maximelebreton commented Jun 15, 2018

Here is my case.

I have a standalone script (the library).
Who process data from spreadsheets (where i've installed the library).

So when I want to Logger.log() something, I need to execute the function from a Spreadsheet, and go to the Spreadsheet Editor Script Journal (and not the Standalone Journal or Stack Driver), to see it.

So how can I get my standalone logs, but executed from a spreadsheet?

Or have you a better workflow for debugging in this kind of situation?

Thanks!

@grant
Copy link
Contributor

grant commented Jun 17, 2018

Executed from a spreadsheet is technically a Spreadsheet Add-on.

Use StackDriver logging for persistent logs. Read up on this:
https://developers.google.com/apps-script/guides/logging

Use console.log and View > StackDriver Logs

@grant
Copy link
Contributor

grant commented Jun 26, 2018

@maximelebreton Did you try that out?
I'm going to close this issue soon as it is related to Apps Script in general and not clasp.

@grant grant closed this as completed Aug 17, 2018
@carlosonunez
Copy link

Can confirm that this worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants