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

feat(console): use log files instead of in-memory logs #7043

Merged

Conversation

skyrpex
Copy link
Contributor

@skyrpex skyrpex commented Aug 22, 2024

This changeset refactors the console so it uses a file to store the logs (previously, logs were stored in memory). The log retrieval mechanism still reads the whole file, but some code capable of streaming line-based files was added for future references.

Closes #7024.

Copy link

Thanks for opening this pull request! 🎉
Please consult the contributing guidelines for details on how to contribute to this project.
If you need any assistance, don't hesitate to ping the relevant owner over Discord.

Topic Owner
Wing SDK and standard library @chriscbr
Wing Console @skyrpex
Wing compiler and language design @chriscbr
VSCode extension and language server @chriscbr
Wing CLI @chriscbr
Documentation @boyney123
Examples @boyney123
Wing Playground @skyrpex

@skyrpex skyrpex changed the title 7024: Use log files instead of in-memory logs in the console feat(console): use log files instead of in-memory logs Aug 22, 2024
@monadabot
Copy link
Contributor

monadabot commented Aug 22, 2024

Console preview environment is available at https://wing-console-pr-7043.fly.dev 🚀

Last Updated (UTC) 2024-08-26 09:24

skyrpex and others added 15 commits August 22, 2024 17:19
This is an integration commit for the virtual branches that GitButler is tracking.

Due to GitButler managing multiple virtual branches, you cannot switch back and
forth between git branches and virtual branches easily. 

If you switch to another branch, GitButler will need to be reinitialized.
If you commit on this branch, GitButler will throw it away.

Here are the branches that are currently applied:
 - Virtual branch (refs/gitbutler/Virtual-branch)
   branch head: 6ac8d2e
   - apps/wing-console/console/server/src/consoleLogger.ts
   - apps/wing-console/console/server/src/index.ts
   - apps/wing-console/console/app/demo/main.w
   - apps/wing-console/console/server/src/router/app.ts
 - 7024: Use log files instead of in-memory logs in the console (refs/gitbutler/7024-Use-log-files-instead-of-in-memory-logs-in-the-console)
   branch head: 14018ff

Your previous branch was: 7acd85e817c721795fee803777607df4c99be885

The sha for that commit was: 7acd85e817c721795fee803777607df4c99be885

For more information about what we're doing here, check out our docs:
https://docs.gitbutler.com/features/virtual-branches/integration-branch
@skyrpex
Copy link
Contributor Author

skyrpex commented Aug 23, 2024

Now I just need to make sure the react query's infinite query actually fetches the most recent data...

1 similar comment
@skyrpex
Copy link
Contributor Author

skyrpex commented Aug 23, 2024

Now I just need to make sure the react query's infinite query actually fetches the most recent data...

@skyrpex skyrpex marked this pull request as ready for review August 26, 2024 09:22
@skyrpex skyrpex merged commit 8eb828b into main Aug 26, 2024
13 checks passed
@skyrpex skyrpex deleted the 7024-Use-log-files-instead-of-in-memory-logs-in-the-console branch August 26, 2024 13:54
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.83.3.

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

Successfully merging this pull request may close these issues.

Use log files instead of in-memory logs in the console
3 participants