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

Make defmt-logger more configurable, remove probe-run strings #376

Merged
merged 8 commits into from
Feb 12, 2021
Merged

Make defmt-logger more configurable, remove probe-run strings #376

merged 8 commits into from
Feb 12, 2021

Conversation

jonas-schievink
Copy link
Contributor

@jonas-schievink jonas-schievink commented Feb 8, 2021

This refactors defmt-logger so that it does not make decisions about what data to include. It adds more API surface that can be used to write custom loggers, and removes any assumptions about being used by probe-run from the existing logger.

Closes #356

@jonas-schievink jonas-schievink changed the title Reduce defmt-logger to conversion utils Make defmt-logger more configurable, remove probe-run strings Feb 9, 2021
@jonas-schievink jonas-schievink added the pr waits on: review Pull Request is waiting on review label Feb 10, 2021
Otherwise we'd duplicate this code both in probe-run and in defmt-print
decoder/src/logger/mod.rs Show resolved Hide resolved
decoder/src/logger/mod.rs Outdated Show resolved Hide resolved
decoder/src/logger/mod.rs Outdated Show resolved Hide resolved
decoder/src/logger/mod.rs Outdated Show resolved Hide resolved
decoder/src/logger/mod.rs Outdated Show resolved Hide resolved
decoder/src/logger/mod.rs Outdated Show resolved Hide resolved
decoder/src/logger/mod.rs Outdated Show resolved Hide resolved
decoder/src/logger/mod.rs Outdated Show resolved Hide resolved
@jonas-schievink
Copy link
Contributor Author

bors r=Lotterleben

@bors
Copy link
Contributor

bors bot commented Feb 12, 2021

Build succeeded:

@bors bors bot merged commit dfee46d into knurling-rs:main Feb 12, 2021
@jonas-schievink jonas-schievink deleted the reduce-logger-crate branch February 12, 2021 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr waits on: review Pull Request is waiting on review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logger: don't eat all logs that don't match "probe-run"
2 participants