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 request: Status message logging plugin #188

Open
LightArrowsEXE opened this issue Sep 16, 2024 · 0 comments
Open

Feature request: Status message logging plugin #188

LightArrowsEXE opened this issue Sep 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@LightArrowsEXE
Copy link
Member

LightArrowsEXE commented Sep 16, 2024

A plugin that shows status messages from functions/methods might be a nice addition.

Specifically, I'm thinking something like vscode's Output:

image
image

This would mostly be useful for debugging, as well as troubleshooting in case users run into problems.
For this, the following things should be implemented:

  • A logging class that implements the basic info/error/warn/debug/etc. methods (either in vspreview directly or vstools (or maybe stgpytools?))
    • It should accept a namespace (including a function it can derive a name from, like our custom Exceptions currently do)
    • These messages should not be logged to standard stdout (maybe add an option to still do this so you don't have to write multiple log statements?)
    • (Optional) Prettify logging, just like we did for CustomExceptions
  • A vspreview plugin that catches and displays special log messages
    • It should keep observing new patterns, such that if there's for example debug statements in a frameeval, it can keep sending new logs every time a frame is loaded

I'm not sure how difficult this would be to implement, but it's something I can see being beneficial.

@LightArrowsEXE LightArrowsEXE added the enhancement New feature or request label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant