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

[Feature]: Allow full logging for functions or logs to be exported to a file #260

Open
Hahlh opened this issue Nov 15, 2023 · 9 comments
Open
Labels
question Further information is requested

Comments

@Hahlh
Copy link

Hahlh commented Nov 15, 2023

What area(s) will this request affect?

Function

What type of change do you want to see?

Substantial change to existing feature

Overview

At the moment it seems not possible to get extensive logs out of test runs for Shopify functions (without executing the function directly via node) as they are always truncated:

image

It seems that a log functionality has existed once, but was removed without any alternative being introduced:
Shopify/cli#969

There also seem to be no command line options to prevent truncation neither for Javy nor for Shopify CLI directly.

Are we simply missing something here?
It seems full logging would be essential for function development.
Having to adapt the function for direct execution with node every time we want to log intermediate steps feels like improvable DX.

Thank you for your time.

Leo

Motivation

Full logging is essential for function development and good DX.

@Hahlh Hahlh changed the title [Feature]: Allow logs for functions console.logs to be untruncated or exported to a file [Feature]: Allow full logging for functions or exported to be exported to a file Nov 15, 2023
@Hahlh Hahlh changed the title [Feature]: Allow full logging for functions or exported to be exported to a file [Feature]: Allow full logging for functions or logs to be exported to a file Nov 15, 2023
Copy link

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action.
→ If there's no activity within a week, then a bot will automatically close this.
Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

@Hahlh
Copy link
Author

Hahlh commented Dec 29, 2023

Still relevant.

Copy link

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action.
→ If there's no activity within a week, then a bot will automatically close this.
Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

@Hahlh
Copy link
Author

Hahlh commented Feb 11, 2024

Still relevant.

Copy link

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action.
→ If there's no activity within a week, then a bot will automatically close this.
Thanks for helping to improve Shopify's dev tooling and experience.

P.S. You can learn more about why we stale issues here.

@Hahlh
Copy link
Author

Hahlh commented Mar 26, 2024

Still relevant.

@shauns
Copy link

shauns commented Apr 4, 2024

I'm going to transfer this over to https://github.com/Shopify/function-runner which is a more relevant home for the issue.

@shauns shauns transferred this issue from Shopify/cli Apr 4, 2024
@nickwesselman
Copy link

Can you provide more detail on the command that's being truncated here? shopify app function run ?

@andrewhassan andrewhassan added the question Further information is requested label May 27, 2024
@nickwesselman
Copy link

@Hahlh Tagging you on the question above.

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

No branches or pull requests

4 participants