-
Notifications
You must be signed in to change notification settings - Fork 430
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
View Stackdriver logs #46
Comments
I'd like to take this on! It needs some cleanup and styling, but should work. |
Sweet! Looking good! 1 nit. We'll probably want to use the // Project settings file (Saved in .clasp.json)
interface ProjectSettings {
scriptId: string;
rootDir: string;
projectId: string; // Resources -> Cloud Platform Project...
} |
Yes, I saw the ProjectSettings, and I wasn't sure how we wanted to implement actually getting the projectId. I see a couple options:
For me, (1) seems like the easier way to do it, and maybe what we should do temporarily. In the future, I think that maybe adding a flag to |
TLDR: Currently, the other project settings ( More details: I think a Also, come to think of it, we should add instructions to the README. So, for v1, assume the Cloud |
Ok, I'll assume for now that it's already in the .clasp.json file, with instructions to the user to modify that file. In the README instructions, we should mention that you can find your projectId by following these instructions: https://developers.google.com/apps-script/guides/cloud-platform-projects#accessing_an_apps_script_cloud_platform_project However, it's important to note that this is a hidden GCP project, and is only used for the Apps Script. If they want to connect it to another project they can follow the instructions a little lower on that page as well. +1 to "Ideally, the API would give us the Cloud projectId for the Project". Since it doesn't for now, I think updating the README with how to find it and where to put it would be best. |
@grant See the latest 3 commits here: https://github.com/campionfellin/clasp/commits/clasp-logs |
Fixed with #101. |
Expected Behavior
clasp logs --json [{ "jsonPayload": {foo:42}, ... }, {...}]
Views StackDriver logs (
console.log
).Actual Behavior
Command doesn't exist yet.
Notes
Example Stackdriver API result
Please 👍 if you'd like this feature.
The text was updated successfully, but these errors were encountered: