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

Add log message filtering #3

Merged
merged 7 commits into from
Nov 18, 2024

Conversation

yatinmaan
Copy link
Contributor

No description provided.

@extrawurst
Copy link
Contributor

running the sample on close of the app i sometimes get:

 winit::platform_impl::macos::app_state: had to queue event since another is currently being handled event=WindowEvent { window_id: WindowId(5713206000), event: Destroyed }
thread '<unnamed>' panicked at src/logging.rs:66:18:

Copy link
Contributor

@extrawurst extrawurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets fix the crash and the formatting, then its good to go

@extrawurst
Copy link
Contributor

Please also add a CHANGELOG.md similar to our other crates

@extrawurst
Copy link
Contributor

If the Log Level does not allow us to get anything below INFO can we auto disable the buttons accordingly?

extrawurst and others added 2 commits November 12, 2024 09:27
 - Handle closed channel gracefully
 - Fix formatting
@extrawurst
Copy link
Contributor

Lets use line wrapping:

Screenshot 2024-11-14 at 18 55 52

@extrawurst
Copy link
Contributor

lets use more matching colors with what they use on the terminal:

Screenshot 2024-11-14 at 18 55 10

Copy link
Contributor

@extrawurst extrawurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please try to hide the buttons of log levels that we wont be receiving anyway - you mentioned using LogPlugin fields for this

src/logging.rs Outdated Show resolved Hide resolved
src/logging.rs Outdated Show resolved Hide resolved
src/logging.rs Outdated Show resolved Hide resolved
src/utils.rs Outdated Show resolved Hide resolved
- Move log_viewer code to its own file
- Remove unused pub on ChipMarker
- Update log message in simple.rs example to include 1-5 for logs
- Update bevy_libgdx_atlas link in README.md
- Update log level colors in debug_log_level.rs
@extrawurst
Copy link
Contributor

extrawurst commented Nov 15, 2024

If I disable showing trace level entries some are still left, most disappear:

Screenshot 2024-11-15 at 23 33 03

@yatinmaan yatinmaan requested a review from extrawurst November 17, 2024 01:12
CHANGELOG.md Outdated
* Added level based log filtering

### Removed
* Stopped creating bevy events for incomming logs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i cannot find any code that got removed for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG.md Outdated Show resolved Hide resolved
@yatinmaan yatinmaan requested a review from extrawurst November 18, 2024 12:40
@extrawurst extrawurst merged commit 33e75bf into rustunit:master Nov 18, 2024
6 checks passed
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.

2 participants