Skip to content

Assits: enable log statement #1837

Open
@matklad

Description

I use printf debugging a lot, and the problem with printfs is that you have to recompile the code, which is slow.

An alternative is to use loging, which can be configured at run time and does not need recompiling.

However, I find logs not very useful for debugging, as enabling logging is cumbersome, and you usually get way to much output.

Ideally, I'd love to be able to enable not only the whole log level, but specific log statements. I believe an IDE should help here:

  • for each log statement, there's an assist "enable log statement"
  • IDE maintains a persitent list of enabled log statemtnts
  • when running tasks, IDE set's RUST_LOG env variable to only hit the specified statements.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-assistsE-hardS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions