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

rebase: Support selecting target buffer #64

Merged
merged 4 commits into from
Feb 14, 2023

Conversation

rsglobal
Copy link
Contributor

Rebased version of #50

  • Add LogId enum to identify the different log buffers.
  • Add an argument to PlatformLogWriter::new to allow a target buffer to be specified.
  • Update Config to allow specifying a target buffer.

@rsglobal rsglobal changed the title Support selecting target buffer rebase: Support selecting target buffer Feb 13, 2023
@rsglobal
Copy link
Contributor Author

Rebased, cargo test passes, not tested with my project yet.

@rsglobal
Copy link
Contributor Author

I tested it on Android device and was able to switch buffer to radio and see logs from there logcat -b radio.
FFI library needs updating.

@Nercury Nercury requested a review from tyranron February 14, 2023 09:12
Cargo.toml Outdated Show resolved Hide resolved
@Nercury
Copy link
Collaborator

Nercury commented Feb 14, 2023

I think it's good, but since I am not alone in maintaining this please @tyranron, can you take a look too?

* Add `LogId` enum to identify the different log buffers.
* Add an argument to `PlatformLogWriter::new` to allow a target buffer to be specified.
* Update `Config` to allow specifying a target buffer.
@tyranron tyranron added k::api Related to API (application interface) feature New feature or request labels Feb 14, 2023
@tyranron tyranron added the semver::breaking Breaking change in terms of SemVer label Feb 14, 2023
Copy link
Contributor

@tyranron tyranron left a comment

Choose a reason for hiding this comment

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

@rsglobal thanks!

@tyranron tyranron merged commit fee1bea into rust-mobile:master Feb 14, 2023
@tyranron
Copy link
Contributor

@rsglobal released in 0.13.0.

@rsglobal
Copy link
Contributor Author

Thanks for quick merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request k::api Related to API (application interface) semver::breaking Breaking change in terms of SemVer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants