Skip to content

rebase: Support selecting target buffer - #64

Merged
tyranron merged 4 commits into
rust-mobile:masterfrom
rsglobal:rebase-log-id
Feb 14, 2023
Merged

rebase: Support selecting target buffer#64
tyranron merged 4 commits into
rust-mobile:masterfrom
rsglobal:rebase-log-id

Conversation

@rsglobal

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@rsglobal

Copy link
Copy Markdown
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
Comment thread Cargo.toml Outdated
@Nercury

Nercury commented Feb 14, 2023

Copy link
Copy Markdown
Collaborator

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

@tyranron tyranron left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@rsglobal released in 0.13.0.

@rsglobal

Copy link
Copy Markdown
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